Skip to content

feat: fold IS NULL/NOT NULL predicates on unknown type - #983

Open
ggyuchive wants to merge 1 commit into
apache:mainfrom
ggyuchive:feat/unknown-type-null-predicates
Open

ggyuchive wants to merge 1 commit into
apache:mainfrom
ggyuchive:feat/unknown-type-null-predicates

Conversation

@ggyuchive

Copy link
Copy Markdown
  • Previously the predicate stayed a BoundUnaryPredicate, and since unknown columns have no metrics, NOT NULL could not prune any data files.
  • Values of the v3 unknown type are always null, so IS NULL on an unknown column now binds to AlwaysTrue and NOT NULL binds to AlwaysFalse.
  • This resolves the TODO(gangwu): deal with UnknownType in BindUnaryOperation and matches Java's UnboundPredicate#bindUnaryOperation.

Values of the v3 unknown type are always null.
Binding IS NULL on an unknown column now returns AlwaysTrue
and NOT NULL returns AlwaysFalse.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant