TransCompressionCommand Inoperable
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.6k
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 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