Skip to content

chore: Improve reporting of fallback reasons for CollectLimit #1694

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

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

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Apr 29, 2025

Which issue does this PR close?

Part of #1669

Rationale for this change

I found it confusing to see CollectLimitExec is not supported, because I know that it is supported (in some cases).

What changes are included in this PR?

Improve reporting of fallback reasons.

How are these changes tested?

Comment on lines 405 to 407
if (!isCometShuffleEnabled(conf)) {
fallbackReasons += "Comet shuffle is not enabled"
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm actually not sure why we do not support CollectLimitExec if Comet shuffle is disabled 🤔

@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2025

Codecov Report

Attention: Patch coverage is 94.44444% with 1 line in your changes missing coverage. Please review.

Project coverage is 58.75%. Comparing base (f09f8af) to head (cf6aa50).
Report is 174 commits behind head on main.

Files with missing lines Patch % Lines
...n/scala/org/apache/comet/rules/CometExecRule.scala 94.44% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1694      +/-   ##
============================================
+ Coverage     56.12%   58.75%   +2.62%     
- Complexity      976     1135     +159     
============================================
  Files           119      129      +10     
  Lines         11743    12571     +828     
  Branches       2251     2350      +99     
============================================
+ Hits           6591     7386     +795     
- Misses         4012     4024      +12     
- Partials       1140     1161      +21     

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

Comment on lines +212 to +217
if (fallbackReasons.nonEmpty) {
withInfos(op, fallbackReasons.toSet)
} else {
if (!isCometNative(op.child)) {
// no reason to report reason if child is not native
op
Copy link
Contributor

Choose a reason for hiding this comment

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

hmmm is it possible that there are fallbackReasons as well as the child is not native at the same time? should we report that the child is not native then?

Copy link
Contributor

Choose a reason for hiding this comment

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

'Child is not native' reporting was removed because it led to lots of repetitive messages. The child that is not native would have already reported the reason (I think).

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.

4 participants