LuciferYang opened a new pull request, #13699: URL: https://github.com/apache/gluten/pull/13699
## What changes are proposed in this pull request? `LocalFilesNode.toProtobuf` converted the file schema into a Substrait `NamedStruct` for every file of the split. It now builds it once and sets the same message on every file. Measured on an ORC split with columns cycling through long, string, decimal and struct types: 32 files × 50 columns goes from 942 µs to 288 µs, 32 × 200 from 3.2 ms to 0.66 ms, and 128 × 200 from 16.7 ms to 1.6 ms. Fixes #13698. ## How was this patch tested? Added `LocalFilesNodeSuite`, which checks that every file of a split carries the full file schema with the right names, types and nullability, and that no schema is written when none is set. It pins the output and passes on the old code too; the numbers above came from a local benchmark. ## Was this patch authored or co-authored using generative AI tooling? Yes. Generated-by: Claude Opus. -- 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]
