You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow Logical expression ScalarVariable to represent an extension type or metadata (#18243)
## Which issue does this PR close?
- Closes#18230
## Rationale for this change
Add richer variable metadata by switching Expr::ScalarVariable to store
an Arrow Field, allowing planners to retain nullability and metadata
when handling @var expressions.
## What changes are included in this PR?
This PR updates ScalarVariable to use FieldRef so it can represent
extension types and metadata in logical expressions.
## Are these changes tested?
Yes
## Are there any user-facing changes?
When planning queries with variables (e.g., @foo), the resulting logical
expressions carry full field metadata instead of only a data type. This
can affect downstream components that inspect nullability or custom
metadata.
---------
Co-authored-by: Dewey Dunnington <dewey@dunnington.ca>
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
0 commit comments