malinjawi commented on PR #13790: URL: https://github.com/apache/gluten/pull/13790#issuecomment-7191380684
> do you know what would it take to run the metadata query in Velox end to end, including the scan, without converting back to Spark rows between operators? The scan is actually the smaller part of it. On a warm snapshot the thing that really keeps us on Spark is the file-skipping filter: Delta wraps every predicate in a Scala UDF that feeds its scan-size metrics, so we fall back on it today. After that it's the source (Delta caches its state as a row RDD, and our native RDD scan doesn't take it because of map columns like `partitionValues` and `tags`), and then Delta's own typed Dataset steps, like the `map` in the job that lists files for the DV check. Those are Scala lambdas, so they'll stay on Spark whatever we do. So for the warm snapshot it's both, but the operators are the bigger problem. Even if the cache were columnar tomorrow, the UDF filter and the typed `map` would send us straight back to rows. > For a cold snapshot, do you recall why the existing `_delta_log` fallback includes Parquet checkpoints as well as JSON commits? Was there a specific correctness issue with the native Parquet reader? No, there was no reader bug behind it. I added that check in #12269 while landing the DV scan work, and it's just a path match, so anything under `_delta_log` stays on Spark, checkpoints included. Native checkpoint reads were never validated, so that's the first thing I'd test on the cold path. If I had to pick where to start, it's the filter. It's the only step in these jobs doing real per-row work, and nothing else pays off until it runs natively. I'll start there and share the approach once I've sorted out how to handle the metrics UDF. -- 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]
