apache / apache/parquet-java

TransCompressionCommand Inoperable

オープン
#2,552 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Component: Java Component: Parquet Priority: Blocker Type: bug
主要言語
Java
スター
3.1k
フォーク
1.6k
平均マージ
3日 12時間
マージ済み PR(30日)
33

説明

`TransCompressionCommand` in parquet-tools is intended to allow translation of compression types in parquet files.  We are intending to use this functionality to debug a corrupted file, but this command fails to run at the moment entirely. 

Running the following command (on the uncorrupted file):
```java

java -jar ./parquet-tools-1.11.1.jar trans-compression ~/Downloads/part-00048-69f65188-94b5-4772-8906-5c78989240b5_00048.c000.snappy.parquet
```
This results in 

 
```java

Unknown command: trans-compression
```
 

I believe this is due to the Registry class [silently catching any errors to initialize](https://github.com/apache/parquet-mr/blob/master/parquet-tools/src/main/java/org/apache/parquet/tools/command/Registry.java#L65) which subsequently is [misinterpreted as an unknown command](https://github.com/apache/parquet-mr/blob/master/parquet-tools/src/main/java/org/apache/parquet/tools/Main.java#L200).

We need to: 
1. Write a test for the TransCompressionCommand to figure out why it's showing up as unknown command
1. Probably expand these tests to cover all the other commands

 

This will then unblock our debugging work on the suspect file. 

**Environment**: I am using parquet-tools 1.11.1 on a Mac machine running Catalina, and my parquet-tools jar was downloaded from Maven Central. 
**Reporter**: [Shelby Vanhooser](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=vanhooser)

**Note**: *This issue was originally created as [PARQUET-1948](https://issues.apache.org/jira/browse/PARQUET-1948). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

parquet-tools/src/main/java/org/apache/parquet/tools/command/Registry.java と org/apache/parquet/tools/Main.java から始め、報告された trans-compression コマンドを実行して unknown-command の結果を再現します。TransCompressionCommand のテストを追加し、該当する場合は他のコマンドにもカバレッジを広げます。完了の条件は、コマンドが認識され、以前失敗していた理由をテストで説明できることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
cli
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。