Skip to content

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Aug 29, 2025

Which issue does this PR close?

Part of #2019

Rationale for this change

See #2019 for rationale.

Continues the work started in #2028 and moves the remaining predicate expressions out of QueryPlanSerde

What changes are included in this PR?

  • EqualTo
  • EqualNullSafe
  • And
  • Or
  • Not

How are these changes tested?

@andygrove andygrove changed the title refactor remaining predicate serde chore: Refactor remaining predicate expression serde Aug 29, 2025
@andygrove andygrove marked this pull request as ready for review August 29, 2025 22:59
@andygrove
Copy link
Member Author

@CuteChuanChuan fyi

@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2025

Codecov Report

❌ Patch coverage is 96.82540% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.80%. Comparing base (f09f8af) to head (46ebb74).
⚠️ Report is 433 commits behind head on main.

Files with missing lines Patch % Lines
...main/scala/org/apache/comet/serde/predicates.scala 96.55% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2265      +/-   ##
============================================
+ Coverage     56.12%   57.80%   +1.68%     
- Complexity      976     1290     +314     
============================================
  Files           119      145      +26     
  Lines         11743    13363    +1620     
  Branches       2251     2373     +122     
============================================
+ Hits           6591     7725    +1134     
- Misses         4012     4381     +369     
- Partials       1140     1257     +117     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

import org.apache.comet.serde.ExprOuterClass.Expr
import org.apache.comet.serde.QueryPlanSerde._

object CometNot extends CometExpressionSerde[Not] {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is nice!

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @andygrove

@andygrove andygrove merged commit b6b5b4c into apache:main Sep 1, 2025
93 checks passed
coderfender pushed a commit to coderfender/datafusion-comet that referenced this pull request Dec 13, 2025
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.

3 participants