diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListColumns.java b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListColumns.java index 28879ce13cc..9ea85a55ef1 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListColumns.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/ListColumns.java @@ -68,8 +68,12 @@ public void handle() { String name = columns[i].name(); String dataType = columns[i].dataType().simpleString(); String comment = columns[i].comment(); - String nullable = columns[i].nullable() ? "null" : ""; - String autoIncrement = columns[i].autoIncrement() ? "auto" : ""; + String nullable = columns[i].nullable() ? "true" : "false"; + String autoIncrement = columns[i].autoIncrement() ? "true" : "false"; + + if (i == 0) { + all.append("name,datatype,comment,nullable,auto_increment" + System.lineSeparator()); + } // TODO default values all.append( name