voonhous opened a new issue, #19880: URL: https://github.com/apache/hudi/issues/19880
### Bug Description **What happened:** `metadata stats` in hudi-cli always prints an empty table. `MetadataCommand.stats` (master 6ac27904, `MetadataCommand.java:192-194`) opens the metadata table with `HoodieMetadataConfig.newBuilder().enable(true).build()` and no metrics configuration, so `HoodieBackedTableMetadata.stats()` returns an empty map and the loop that renders the rows never runs. **What you expected:** The command reports the metadata table stats it was written to show (partition count, file count, sizes), or it is removed if the stats are no longer produced. **Steps to reproduce:** 1. Write a table with the metadata table enabled. 2. `connect --path <table>` then `metadata stats`. 3. Only the header row is printed. Found while writing the tests in #19877; the test there asserts the empty table as the current behaviour. ### Environment **Hudi version:** master (6ac27904) **Query engine:** hudi-cli (Spark) **Relevant configs:** none ### Logs and Stack Trace No exception; the rendered table has a header and no rows. -- 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]
