Skip to content

Conversation

@coderfender
Copy link
Contributor

@coderfender coderfender commented Nov 24, 2025

Which issue does this PR close?

Closes #531

Rationale for this change

Support ANSI eval mode (for integer types) for average expression

What changes are included in this PR ?

  1. Changes to avg implementation to support eval modes
  2. Given that Spark considers Inf as a valid output and doesnt necessarily throw an exception, we follow the same approach in comet as well (essentially making eval mode's redundant for numeric inputs)

How are these changes tested?

@coderfender coderfender changed the title Add support ansi mode avg expr feat: Support ANSI mode sum expr Nov 24, 2025
@coderfender coderfender changed the title feat: Support ANSI mode sum expr feat: Support ANSI mode avg expr Nov 24, 2025
@codecov-commenter
Copy link

codecov-commenter commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.07%. Comparing base (f09f8af) to head (444ce0e).
⚠️ Report is 722 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2817      +/-   ##
============================================
+ Coverage     56.12%   59.07%   +2.94%     
- Complexity      976     1459     +483     
============================================
  Files           119      165      +46     
  Lines         11743    15059    +3316     
  Branches       2251     2504     +253     
============================================
+ Hits           6591     8896    +2305     
- Misses         4012     4894     +882     
- Partials       1140     1269     +129     

☔ 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.

@andygrove
Copy link
Member

@coderfender You can merge latest from main to fix the current CI failures

@coderfender coderfender force-pushed the add_support_ansi_mode_avg_expr branch from 5192933 to 33b0b2f Compare November 24, 2025 20:36
@coderfender
Copy link
Contributor Author

@andygrove , Thank you . I rebased my feature branch with main. Please kick off CI whenever you get a chance . Thank you

@coderfender
Copy link
Contributor Author

@andygrove , fixed issues with formatting and an unused import. Please kickoff the CI whenever you get a chance . Thank you

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.

Add ANSI support in SUM and AVG

4 participants