This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new 115bdb787 ORC-1848: PrintData tool add parameter description
115bdb787 is described below
commit 115bdb78770e499cc45d966f235ed75c25c542a3
Author: sychen <[email protected]>
AuthorDate: Mon Feb 10 16:01:13 2025 -0800
ORC-1848: PrintData tool add parameter description
### What changes were proposed in this pull request?
```bash
java -jar orc-tools-2.2.0-SNAPSHOT-uber.jar data -h
usage: java -jar orc-tools-*.jar data <orc file>*
-h,--help Provide help
-n,--lines <LINES> Sets lines of data to be printed
```
### Why are the changes needed?
```bash
java -jar orc-tools-2.1.0-uber.jar data -h
usage: java -jar orc-tools-*.jar data <orc file>*
-h,--help Provide help
-n,--lines <LINES>
```
### How was this patch tested?
local test
### Was this patch authored or co-authored using generative AI tooling?
No
Closes #2126 from cxzl25/ORC-1848.
Authored-by: sychen <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 2aec4fb95292a9a11218234d4675ae05e9240a5e)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
java/tools/src/java/org/apache/orc/tools/PrintData.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/java/tools/src/java/org/apache/orc/tools/PrintData.java
b/java/tools/src/java/org/apache/orc/tools/PrintData.java
index 37a720942..6c7c18ba1 100644
--- a/java/tools/src/java/org/apache/orc/tools/PrintData.java
+++ b/java/tools/src/java/org/apache/orc/tools/PrintData.java
@@ -238,6 +238,7 @@ public class PrintData {
.build();
Option linesOpt = Option.builder("n").longOpt("lines")
.argName("LINES")
+ .desc("Sets lines of data to be printed")
.hasArg()
.build();