-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-26770][table] Fix ArrayToArrayCastRule array type #19188
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
Conversation
Signed-off-by: slinkydeveloper <francescoguard@gmail.com>
|
We should backport this to 1.15 branch as well |
| return CodeGenUtils.boxedTypeTermForType(t); | ||
| } | ||
| switch (t.getTypeRoot()) { | ||
| case BOOLEAN: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi, I think it would be better to use CodeGenUtils.primitiveTypeTermForType instead, what do you think?
Maybe we need to check isPrimitiveNullable first when t is nullable, if it is true, we should use primitiveType instead of boxedType.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I pushed a change, also adding another test to make sure this works. Does it looks good now?
Signed-off-by: slinkydeveloper <francescoguard@gmail.com>
wenlong88
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the update, I left a few more comment.
...ner/src/main/java/org/apache/flink/table/planner/functions/casting/ArrayToArrayCastRule.java
Show resolved
Hide resolved
...le-planner/src/test/java/org/apache/flink/table/planner/functions/casting/CastRulesTest.java
Show resolved
Hide resolved
…ucture This closes apache#19188.
…ucture This closes apache#19188.
…ucture This closes apache#19188.
…ucture This closes apache#19188.
…ucture This closes apache#19188.
No description provided.