Skip to content

Conversation

@adriangb
Copy link
Contributor

@adriangb adriangb commented Feb 9, 2026

Pulling out of #20117.

Aliases cause no compute or changes to how compute happens. They should delegate to their inner expression.

@github-actions github-actions bot added the logical-expr Logical plan and expressions label Feb 9, 2026
@github-actions github-actions bot added the sqllogictest SQL Logic Tests (.slt) label Feb 9, 2026
@adriangb adriangb requested a review from alamb February 9, 2026 14:15
02)--Projection: get_field(simple_struct.s, Utf8("value")) AS __common_expr_1
03)----Filter: simple_struct.id > Int64(2)
04)------TableScan: simple_struct projection=[id, s], partial_filters=[simple_struct.id > Int64(2)]
01)Projection: get_field(simple_struct.s, Utf8("value")) + get_field(simple_struct.s, Utf8("value")) AS doubled
Copy link
Contributor

Choose a reason for hiding this comment

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

this looks like a nicer plan to me (one less level of Projection)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep the intuition is that there's no point in de-duplicating get_field because it's so trivial to compute

@adriangb
Copy link
Contributor Author

adriangb commented Feb 9, 2026

Thanks @alamb will merge once CI finishes

@adriangb adriangb added this pull request to the merge queue Feb 9, 2026
Merged via the queue into apache:main with commit ac3a68e Feb 9, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

logical-expr Logical plan and expressions sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants