You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@parquet.apache.org by sh...@apache.org on 2022/02/25 02:50:51 UTC

[parquet-mr] branch master updated: PARQUET-2129: Add uncompressedSize to Meta Command (#949)

This is an automated email from the ASF dual-hosted git repository.

shangxinli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-mr.git


The following commit(s) were added to refs/heads/master by this push:
     new c00479d  PARQUET-2129: Add uncompressedSize to Meta Command (#949)
c00479d is described below

commit c00479d538353348726cf78da835078024161e55
Author: Vinoo Ganesh <vi...@users.noreply.github.com>
AuthorDate: Thu Feb 24 21:50:44 2022 -0500

    PARQUET-2129: Add uncompressedSize to Meta Command (#949)
---
 .../parquet/cli/commands/ParquetMetadataCommand.java      | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/parquet-cli/src/main/java/org/apache/parquet/cli/commands/ParquetMetadataCommand.java b/parquet-cli/src/main/java/org/apache/parquet/cli/commands/ParquetMetadataCommand.java
index c72f862..3cc6ca6 100644
--- a/parquet-cli/src/main/java/org/apache/parquet/cli/commands/ParquetMetadataCommand.java
+++ b/parquet-cli/src/main/java/org/apache/parquet/cli/commands/ParquetMetadataCommand.java
@@ -123,12 +123,15 @@ public class ParquetMetadataCommand extends BaseCommand {
     long uncompressedSize = rowGroup.getTotalByteSize();
     String filePath = rowGroup.getPath();
 
-    console.info(String.format("\nRow group %d:  count: %d  %s records  start: %d  total: %s%s\n%s",
-        index, rowCount,
-        humanReadable(((float) compressedSize) / rowCount),
-        start, humanReadable(compressedSize),
-        filePath != null ? " path: " + filePath : "",
-        new TextStringBuilder(80).appendPadding(80, '-')));
+    console.info(String.format("\nRow group %d:  count: %d  %s records  start: %d  total(compressed): %s total(uncompressed):%s %s\n%s",
+      index,
+      rowCount,
+      humanReadable(((float) compressedSize) / rowCount),
+      start,
+      humanReadable(compressedSize),
+      humanReadable(uncompressedSize),
+      filePath != null ? "path: " + filePath : "",
+      new TextStringBuilder(80).appendPadding(80, '-')));
 
     int size = maxSize(Iterables.transform(rowGroup.getColumns(),
         new Function<ColumnChunkMetaData, String>() {