baibaichen opened a new pull request, #11726: URL: https://github.com/apache/incubator-gluten/pull/11726
## What changes are proposed in this pull request? Detect variant shredded structs (produced by Spark's `PushVariantIntoScan` optimization) in `VeloxValidatorApi.validateSchema()` by checking for `__VARIANT_METADATA_KEY` metadata on struct fields. When detected, fall back to Spark's native reader since Velox cannot read variant shredding encoding in Parquet files. Changes: - **VeloxValidatorApi.scala**: Added variant shredded struct detection in `validateSchema()`. When all fields of a struct have `__VARIANT_METADATA_KEY` metadata, the schema validation fails and triggers fallback to Spark's native execution. - **VeloxTestSettings.scala (spark40 & spark41)**: Enabled `GlutenVariantEndToEndSuite` and `GlutenVariantShreddingSuite`. ## How was this patch tested? - `GlutenVariantEndToEndSuite`: 14 tests passed on both spark40 and spark41 - `GlutenVariantShreddingSuite`: 8 tests passed on both spark40 and spark41 ## Was this patch authored or co-authored using generative AI tooling? Generated-by: GitHub Copilot CLI -- 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]
