manuzhang opened a new pull request, #7822: URL: https://github.com/apache/datafusion-comet/pull/7822
## Which issue does this PR close? Closes #3432. ## Rationale for this change Reading `_metadata.row_index` falls back to Spark even though Comet's DataFusion version can generate original, zero-based Parquet row positions. ## What changes are included in this PR? - Plan Spark's generated row index as a Parquet virtual column and preserve Spark's projection order relative to partition and constant metadata columns, including empty scan tasks. - Keep predicates that reference the row index out of Parquet pushdown. Other predicates can still prune or filter rows without renumbering their positions. - Keep the existing fallback for split-dependent metadata. ## How are these changes tested? - Rust: 34 Parquet scan tests and 5 empty-scan planner tests passed. - Added a Spark regression covering multiple files and row groups, row-level pushdown on and off, index-only projection, and an index predicate whose index is not selected. Local Spark validation is in progress. Prepared with Codex. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
