You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "voonhous (via GitHub)" <gi...@apache.org> on 2026/09/09 08:46:39 UTC

[I] hudi-cli: metadata stats always prints an empty table [hudi]

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: commits-unsubscribe@hudi.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] hudi-cli: metadata stats always prints an empty table [hudi]

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 closed issue #19880: hudi-cli: metadata stats always prints an empty table
URL: https://github.com/apache/hudi/issues/19880


-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org