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

dongjoon pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/orc.git


The following commit(s) were added to refs/heads/branch-2.1 by this push:
     new fb366e5c2 ORC-1848: PrintData tool add parameter description
fb366e5c2 is described below

commit fb366e5c27bda6f0c3dd32df990afa2d7a756bb0
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();
 

Reply via email to