Skip to content

Conversation

@martint
Copy link
Member

@martint martint commented Mar 23, 2024

Rename to FieldReference and make the field an integer instead of an IR expression.

This node is only relevant for expression of Row type, and the field is known at construction time.

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 Mar 23, 2024
@github-actions github-actions bot added tests:hive iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector mongodb MongoDB connector labels Mar 23, 2024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this method be renamed to visitFieldDereference ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good catch

martint added 2 commits March 23, 2024 15:46
It only applies to expressions of Row type
It's a fixed compile-time value, so it's unnecessary
to represent it as an arbitrary Expression. That's a
vestige from when it used to be named Subscript and
represented array accesses, too.
@martint martint merged commit b833968 into trinodb:master Mar 23, 2024
@martint martint deleted the ir-subscript branch March 23, 2024 23:55
@github-actions github-actions bot added this to the 444 milestone Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed delta-lake Delta Lake connector hive Hive connector iceberg Iceberg connector mongodb MongoDB connector

Development

Successfully merging this pull request may close these issues.

3 participants