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

minor: Remove unnecessary logic #169

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Conversation

sunchao
Copy link
Member

@sunchao sunchao commented Mar 5, 2024

Which issue does this PR close?

Closes #.

Rationale for this change

This removes some unnecessary logic in QueryPlanSerde when handling Final aggregation mode.

What changes are included in this PR?

After #155, some previous logic on handling Final aggregation mode is no longer needed.

How are these changes tested?

Existing tests.

// During finding partial aggregation, we must ensure all traversed op are
// native operators. If not, we should fallback to Spark.
var seenNonNativeOp = false
var partialAggInput: Option[Seq[Attribute]] = None
Copy link
Member

Choose a reason for hiding this comment

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

Oh, right, this is not needed anymore.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 50.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 33.25%. Comparing base (56ccf6a) to head (2585f46).

Files Patch % Lines
.../scala/org/apache/comet/serde/QueryPlanSerde.scala 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #169      +/-   ##
============================================
- Coverage     33.27%   33.25%   -0.03%     
  Complexity      763      763              
============================================
  Files           105      105              
  Lines         35371    35353      -18     
  Branches       7663     7657       -6     
============================================
- Hits          11770    11756      -14     
  Misses        21151    21151              
+ Partials       2450     2446       -4     

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

@sunchao sunchao merged commit a028132 into apache:main Mar 6, 2024
19 checks passed
@sunchao
Copy link
Member Author

sunchao commented Mar 6, 2024

Thanks, merged

@sunchao sunchao deleted the remove-extra branch March 6, 2024 05:15
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