Skip to content

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Dec 23, 2025

Which issue does this PR close?

N/A

Rationale for this change

Refactoring to simplify scan selection and fallback logic

What changes are included in this PR?

No functional changes. Just refactoring.

How are these changes tested?

Existing tests.

@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2025

Codecov Report

❌ Patch coverage is 67.44186% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.47%. Comparing base (f09f8af) to head (e3eeaa3).
⚠️ Report is 826 commits behind head on main.

Files with missing lines Patch % Lines
...n/scala/org/apache/comet/rules/CometScanRule.scala 67.44% 7 Missing and 7 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2978      +/-   ##
============================================
+ Coverage     56.12%   59.47%   +3.34%     
- Complexity      976     1381     +405     
============================================
  Files           119      167      +48     
  Lines         11743    15521    +3778     
  Branches       2251     2571     +320     
============================================
+ Hits           6591     9231    +2640     
- Misses         4012     4993     +981     
- Partials       1140     1297     +157     

☔ 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 andygrove marked this pull request as draft December 23, 2025 17:43
@andygrove andygrove changed the title chore: Refactor CometScanRule to improve scan selection and fallback logic chore: Refactor CometScanRule to improve scan selection and fallback logic [WIP] Dec 23, 2025
@andygrove andygrove marked this pull request as ready for review December 23, 2025 18:50
@andygrove andygrove changed the title chore: Refactor CometScanRule to improve scan selection and fallback logic [WIP] chore: Refactor CometScanRule to improve scan selection and fallback logic Dec 23, 2025
@andygrove andygrove marked this pull request as draft December 23, 2025 21:22
@andygrove andygrove changed the title chore: Refactor CometScanRule to improve scan selection and fallback logic chore: Refactor CometScanRule to improve scan selection and fallback logic [WIP] Dec 23, 2025
@andygrove andygrove changed the title chore: Refactor CometScanRule to improve scan selection and fallback logic [WIP] chore: Refactor CometScanRule to improve scan selection and fallback logic Dec 24, 2025
@andygrove andygrove marked this pull request as ready for review December 24, 2025 00:18
@andygrove andygrove requested a review from mbutrovich January 5, 2026 16:27
Comment on lines 159 to 161
withInfo(
scanExec,
"Full native scan disabled because nested types for default values are not supported")
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps should be - "Full native scan disabled because default values for nested types are not supported"

return scanExec
}

// TODO is this restriction valid for all native scan types?
Copy link
Contributor

Choose a reason for hiding this comment

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

Are default values for primitive types supported by native_datafusion?

Copy link
Contributor

@mbutrovich mbutrovich Jan 6, 2026

Choose a reason for hiding this comment

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

Yep. #1756

Copy link
Contributor

@parthchandra parthchandra left a comment

Choose a reason for hiding this comment

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

lgtm. Minor comment.

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