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

shaofengshi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new 1c3949a03 fix compilation error in cli (#5887)
1c3949a03 is described below

commit 1c3949a03b340a11270f5eb5a47b76fb50dbc934
Author: Shaofeng Shi <[email protected]>
AuthorDate: Tue Dec 17 17:10:25 2024 +0800

    fix compilation error in cli (#5887)
    
    ### What changes were proposed in this pull request?
    
    Fix a merge issue in CLI.
    
    ### Why are the changes needed?
    
    It makes the main branch has compilation error.
    
    Fix: #5884
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    ### How was this patch tested?
    
    Local compilation and CI.
---
 .../main/java/org/apache/gravitino/cli/GravitinoCommandLine.java | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java 
b/clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java
index 18389aaa4..e46a8e4c8 100644
--- 
a/clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java
+++ 
b/clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java
@@ -577,15 +577,18 @@ public class GravitinoCommandLine extends 
TestableCommandLine {
 
     Command.setAuthenticationMode(auth, userName);
 
-    if (line.hasOption(GravitinoOptions.AUDIT)) {
-      newColumnAudit(url, ignore, metalake, catalog, schema, table, 
column).handle();
-    } else if (CommandActions.LIST.equals(command)) {
+    if (CommandActions.LIST.equals(command)) {
       newListColumns(url, ignore, metalake, catalog, schema, table).handle();
       return;
     }
 
     String column = name.getColumnName();
 
+    if (line.hasOption(GravitinoOptions.AUDIT)) {
+      newColumnAudit(url, ignore, metalake, catalog, schema, table, 
column).handle();
+      return;
+    }
+
     if (CommandActions.CREATE.equals(command)) {
       String datatype = line.getOptionValue(GravitinoOptions.DATATYPE);
       String comment = line.getOptionValue(GravitinoOptions.COMMENT);

Reply via email to