-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: After JDBCIO read withRowOutput(), the VARCHAR/TEXT -> LOGICAL_TYPE and not compatible with SqlTypeName #23747
Comments
Thanks for reporting this. It looks like the cause is CalciteUtil here: Line 224 in 4ffeae4
does not consider the logical type FieldType. |
.remove-label P0, "awaiting triage" .add_label P2 |
.remove-labels P0, "awaiting triage" .set_labels P2 |
.remove-labels 'awaiting triage' |
Label cannot be managed because it does not exist in the repo. Please check your spelling. |
Yes, I think somehow we should not feed LOGICAL_TYPE to CalciteUtils but instead we should feed the BaseT so that it can handle the normal sql types. So the fix should be within apache/beam/tree/master/sdks/java/extensions/sql/jdbc when parsing the sql query. |
.take-issue |
… CHAR, VARCHAR, BINARY, VARBINARY Fixes #23747
Thanks Andrew for fixing this issue! |
What happened?
Now there is a column named "name" which is VARCHAR, which has been read as beam type LOGICAL_TYPE NOT NULL.
Then I do
It gets "An exception occured while executing the Java class. Unable to parse query SELECT id, policy_name FROM PCOLLECTION: java.lang.IllegalArgumentException: Cannot find a matching Calcite SqlTypeName for Beam type: LOGICAL_TYPE NOT NULL"
Issue Priority
Priority: 0
Issue Component
Component: io-java-jdbc
The text was updated successfully, but these errors were encountered: