NobiGo commented on PR #4150:
URL: https://github.com/apache/calcite/pull/4150#issuecomment-2597432203
It seems like I made a mistake. I retested the same data situation on Pg and
it will threw an exception.
The test SQL in Postgresql:
```
CREATE TABLE public.newtable (
"number" varchar NULL
);
INSERT INTO public.newtable("number") VALUES('');
INSERT INTO public.newtable("number") VALUES('1');
```
Then execute SQL:
```
SELECT sum(cast("number" as integer))
FROM public.newtable;
```
will throw exception: SQL 错误 [22P02]: ERROR: invalid input syntax for
integer: "".
So maybe @hoperunChen should just need to add the data type in CSV title
according to the comments in Jira.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]