alamb opened a new issue, #18953: URL: https://github.com/apache/datafusion/issues/18953
### Is your feature request related to a problem or challenge? - Related to https://github.com/apache/datafusion/issues/18952 I am trying to understand if/when the [`FileStatisticsCache`](https://docs.rs/datafusion/latest/datafusion/execution/cache/cache_manager/struct.CacheManagerConfig.html#method.with_files_statistics_cache) cache is used However, now there is no way to understand the contents of the cache. @nuno-faria made a really nice feature to view the contents of the cache: [`metadata_cache()`](https://datafusion.apache.org/user-guide/cli/functions.html#metadata-cache) For example: ```sql > select * from metadata_cache(); +---------------------------------------------------+---------------------+-----------------+--------------------------------------+---------+---------------------+------+------------------+ | path | file_modified | file_size_bytes | e_tag | version | metadata_size_bytes | hits | extra | +---------------------------------------------------+---------------------+-----------------+--------------------------------------+---------+---------------------+------+------------------+ | hits_compatible/athena_partitioned/hits_1.parquet | 2022-07-03T15:33:57 | 174965044 | "1f5da68e097309811a675c849491ac48-9" | NULL | 165128 | 0 | page_index=false | +---------------------------------------------------+---------------------+-----------------+--------------------------------------+---------+---------------------+------+------------------+ 1 row(s) fetched. Elapsed 0.005 seconds. ``` ### Describe the solution you'd like I would like a table function similar to `metadata_cache()` for the statistics cache. Someting like ```sql select * from statistics_cache(); ``` | path | file_modified | file_size_bytes | e_tag | statistics_size_bytes | |--------|--------|--------|--------|--------| | /foo/bar | 2022-07-03T15:33:57 | 1234 | ... | 132 | | /foo/baz | 2022-07-03T15:33:57 | 5678 | ... | 3112 | | ... | ... | ... | ... | ... | Where `statistics_size_bytes` shows the size of the statistics, in bytes ### Describe alternatives you've considered _No response_ ### Additional context _No response_ -- 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]
