-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Remove special casing for explicit row in VALUES #27463
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
base: master
Are you sure you want to change the base?
Conversation
| } | ||
|
|
||
| Type targetType = commonSuperType; | ||
| if (!(actualType instanceof RowType)) { |
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.
Please retain the comment explaining why we have to unpack the supertype in this case.
497bb25 to
e131ecc
Compare
| for (int field = 0; field < type.getFields().size(); field++) { | ||
| Type fieldType = type.getFields().get(field).getType(); | ||
|
|
||
| SqlRow rowValue = (SqlRow) row.value(); |
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.
Can this be moved outside of the loop?
| for (int field = 0; field < type.getFields().size(); field++) { | ||
| Type fieldType = type.getFields().get(field).getType(); | ||
|
|
||
| SqlRow rowValue = (SqlRow) row.value(); |
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.
Same here
Injecting coerciones field by field is no longer needed. This is now handled by PushCastIntoRow.
e131ecc to
bd21493
Compare
Injecting coerciones field by field is no longer needed. This is now handled by PushCastIntoRow.
Release notes
(x) This is not user-visible or is docs only, and no release notes are required.