-
Notifications
You must be signed in to change notification settings - Fork 273
chore: Auto scan mode no longer falls back to native_comet
#3236
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
chore: Auto scan mode no longer falls back to native_comet
#3236
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3236 +/- ##
============================================
+ Coverage 56.12% 60.19% +4.07%
- Complexity 976 1437 +461
============================================
Files 119 172 +53
Lines 11743 15919 +4176
Branches 2251 2626 +375
============================================
+ Hits 6591 9583 +2992
- Misses 4012 5006 +994
- Partials 1140 1330 +190 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Use local `root_op` variable instead of unwrapping `exec_context.root_op` - Replace `is_some()` + `unwrap()` pattern with `if let Some(...)` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
| val path = new Path(dir.toURI.toString, "test.parquet") | ||
| makeParquetFileAllPrimitiveTypes(path, dictionaryEnabled = dictionaryEnabled, 10000) | ||
| withSQLConf(CometConf.COMET_SCAN_ALLOW_INCOMPATIBLE.key -> "false") { | ||
| // this test requires native_comet scan due to unsigned u8/u16 issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we divert the scan type to native_comet only for u8/u16? So that the rest of the types can be tested for iceberg_compat?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I will make that change. Thanks for the review!
The csv_scan.rs file uses types from datafusion_datasource but the dependency was not declared in native/core/Cargo.toml. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add duplicate tests for "basic data type support" and "uint data type support" that skip reading _9 (UINT_8) and _10 (UINT_16) columns. This restores test coverage for the default scan implementation which can be overridden in CI. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kazuyukitanimura
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @andygrove
pending ci
Which issue does this PR close?
Closes #2186
This is a step towards #2177
Rationale for this change
We need to start deprecating usage of
native_comet. This seems like a good place to start.What changes are included in this PR?
How are these changes tested?