Skip to content

Conversation

@martint
Copy link
Member

@martint martint commented Nov 26, 2025

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.

@cla-bot cla-bot bot added the cla-signed label Nov 26, 2025
@martint martint requested a review from kasiafi November 26, 2025 21:05
}

Type targetType = commonSuperType;
if (!(actualType instanceof RowType)) {
Copy link
Member

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.

@findepi
Copy link
Member

findepi commented Nov 27, 2025

@findepi findepi added the no-release-notes This pull request does not require release notes entry label Nov 27, 2025
@martint martint force-pushed the values-coercion branch 2 times, most recently from 497bb25 to e131ecc Compare December 2, 2025 00:53
for (int field = 0; field < type.getFields().size(); field++) {
Type fieldType = type.getFields().get(field).getType();

SqlRow rowValue = (SqlRow) row.value();
Copy link
Contributor

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();
Copy link
Contributor

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed no-release-notes This pull request does not require release notes entry

Development

Successfully merging this pull request may close these issues.

4 participants