felipepessoto commented on issue #11494: URL: https://github.com/apache/gluten/issues/11494#issuecomment-7177876508
The correctness fallback has merged in [#13667](https://github.com/apache/gluten/pull/13667). Affected scans now use Spark by default; native `EXISTS_DEFAULT` materialization remains unsupported, so this issue stays open for that work. In [his review](https://github.com/apache/gluten/pull/13667#pullrequestreview-6066252254), @philo-he asked: > Just curious whether we have a plan to close the gap. He also suggested narrowing the fallback once native support lands. His review includes an AI-assisted gap analysis covering Hive column handles, missing-column handling, complex defaults, filter-only columns, and Gluten’s metadata transport. Those details should be verified against the target Velox revision. Proposed next steps: 1. Carry typed existence defaults from Spark’s read schema through Substrait into native column handles, using the Iceberg path as a reference where applicable. 2. Extend Velox’s Hive reader to apply defaults only when a field is physically missing, including columns used only in filters. Explicitly stored NULLs must remain NULL. 3. Cover Parquet/ORC, primitive and complex defaults, mixed old/new files, rewritten files, and predicate behavior with regression tests. 4. Make fallback capability-based by backend, file format, and supported default types. Remove it only for combinations with verified native support. Until then, keep `spark.gluten.sql.scan.fallbackOnExistenceDefaults.enabled=true`. Disabling it can produce incorrect results when files lack defaulted columns. -- 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]
