Skip to content

Conversation

@andygrove
Copy link
Member

@andygrove andygrove commented Jan 22, 2026

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?

@codecov-commenter
Copy link

codecov-commenter commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.19%. Comparing base (f09f8af) to head (194c836).
⚠️ Report is 872 commits behind head on main.

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.
📢 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 ready for review January 22, 2026 14:50
andygrove and others added 2 commits January 22, 2026 08:54
- 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>
@andygrove andygrove added this to the 0.13.0 milestone Jan 22, 2026
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
Copy link
Contributor

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?

Copy link
Member Author

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!

andygrove and others added 4 commits January 23, 2026 07:26
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>
Copy link
Contributor

@kazuyukitanimura kazuyukitanimura left a 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

@andygrove andygrove merged commit c9af2c6 into apache:main Jan 23, 2026
130 checks passed
@andygrove andygrove deleted the deprecate-native-comet-scan branch January 23, 2026 17:54
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.

Deprecate native_comet scan (remove from auto scan mode)

3 participants