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: Support IntegralDivide function #1428

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wForget
Copy link
Member

@wForget wForget commented Feb 20, 2025

Which issue does this PR close?

Closes #1422.

Rationale for this change

Support IntegralDivide function

What changes are included in this PR?

Since datafusion div operator conforms to the logic of intergal div, we only need to convert IntegralDivide(...) to Cast(Divide(...), LongType) and then convert it to native.

How are these changes tested?

added unit test

@wForget wForget marked this pull request as draft February 20, 2025 06:32
@codecov-commenter
Copy link

codecov-commenter commented Feb 20, 2025

Codecov Report

Attention: Patch coverage is 22.22222% with 7 lines in your changes missing coverage. Please review.

Project coverage is 57.81%. Comparing base (f09f8af) to head (fef1922).
Report is 42 commits behind head on main.

Files with missing lines Patch % Lines
.../scala/org/apache/comet/serde/QueryPlanSerde.scala 22.22% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1428      +/-   ##
============================================
+ Coverage     56.12%   57.81%   +1.68%     
- Complexity      976      983       +7     
============================================
  Files           119      122       +3     
  Lines         11743    12121     +378     
  Branches       2251     2282      +31     
============================================
+ Hits           6591     7008     +417     
+ Misses         4012     3943      -69     
- Partials       1140     1170      +30     

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

@wForget wForget marked this pull request as ready for review February 20, 2025 10:00
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.

Support IntegralDivide function
2 participants