andygrove opened a new issue, #7858: URL: https://github.com/apache/datafusion-comet/issues/7858
### What is the problem the feature request solves? Comet builds a new `RuntimeEnv` for every Spark task, so the Parquet `FileMetadataCache` lives only as long as one task. Tasks that read different splits of the same file each fetch and parse its footer and page index. On TPC-DS q54 at SF1000 in S3, `store_sales` loaded 534 footers for 440 files, and file opening was about 90% of the scan's time (#7467). #7082 shared the cache across the tasks of a stage and was closed for review cost (about 1.2k lines across 14 files, touching the scan, the JNI config channel and the Delta scan), not because the approach failed. #4994, which tracked reuse across tasks, is closed too, so nothing open tracks this now. ### Describe the potential solution Land a smaller version of #7082: - Scope the cache to (application, stage id, stage attempt), as #7082 did, so a new query always opens its files. That avoids the `HiveMetadataCacheSuite` failure that closed the cross-query attempt (#4995). - Keep the first PR to the Parquet scan. Leave the Delta scan and any new config plumbing for follow-ups. - Build on the store-qualified cache key from #7855 / #7856, so a shared cache can't return another store's footer. Measure with the footer-read counters (`scan_io_footer_reads`, `scan_io_metadata_cache_hits`) and with TPC-DS SF1000 in S3, on and off, as the median of interleaved runs. ### Additional context The branch from #7082 is kept and can serve as the starting point. -- 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]
