Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Not_Null Expression #1777

Merged
merged 2 commits into from
Jan 11, 2024
Merged

[FEAT] Not_Null Expression #1777

merged 2 commits into from
Jan 11, 2024

Conversation

colin-ho
Copy link
Contributor

Closes #1720

Adds not_null expression to check if values are not Null

Changes:

  • add not_null methods in expression and series
  • add not_null op
  • fix bug for nested arrays where validity was not flipped
  • add tests for not_null

@github-actions github-actions bot added the enhancement New feature or request label Jan 11, 2024
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c4bd1b3) 84.84% compared to head (9b191b1) 84.70%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1777      +/-   ##
==========================================
- Coverage   84.84%   84.70%   -0.15%     
==========================================
  Files          55       55              
  Lines        5584     5590       +6     
==========================================
- Hits         4738     4735       -3     
- Misses        846      855       +9     
Files Coverage Δ
daft/expressions/expressions.py 92.15% <100.00%> (+0.06%) ⬆️
daft/series.py 92.67% <100.00%> (+0.05%) ⬆️

... and 3 files with indirect coverage changes

Copy link
Member

@samster25 samster25 left a comment

Choose a reason for hiding this comment

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

Looks great! Can you also add NotNull to our partition transform rewriter here
https://github.com/Eventual-Inc/Daft/blob/main/src/daft-scan/src/expr_rewriter.rs#L130

@colin-ho
Copy link
Contributor Author

Looks great! Can you also add NotNull to our partition transform rewriter here https://github.com/Eventual-Inc/Daft/blob/main/src/daft-scan/src/expr_rewriter.rs#L130

Added!

Copy link
Member

@samster25 samster25 left a comment

Choose a reason for hiding this comment

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

LGTM

@colin-ho colin-ho merged commit 3939fe4 into main Jan 11, 2024
40 checks passed
@colin-ho colin-ho deleted the colin/not-null branch January 11, 2024 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

not_null expression
2 participants