diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/TestableCommandLine.java b/clients/cli/src/main/java/org/apache/gravitino/cli/TestableCommandLine.java index e23378d5418..8af6112413c 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/TestableCommandLine.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/TestableCommandLine.java @@ -267,7 +267,12 @@ protected SchemaAudit newSchemaAudit( } protected SchemaDetails newSchemaDetails( - String url, boolean ignore, String outputFormat, String metalake, String catalog, String schema) { + String url, + boolean ignore, + String outputFormat, + String metalake, + String catalog, + String schema) { return new SchemaDetails(url, ignore, outputFormat, metalake, catalog, schema); } diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SchemaDetails.java b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SchemaDetails.java index cf87296d37e..1f808df26d2 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SchemaDetails.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/commands/SchemaDetails.java @@ -44,7 +44,12 @@ public class SchemaDetails extends Command { * @param schema The name of the schenma. */ public SchemaDetails( - String url, boolean ignoreVersions, String outputFormat, String metalake, String catalog, String schema) { + String url, + boolean ignoreVersions, + String outputFormat, + String metalake, + String catalog, + String schema) { super(url, ignoreVersions, outputFormat); this.metalake = metalake; this.catalog = catalog; diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java b/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java index 074d18c4fef..2be9820834d 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java @@ -111,10 +111,7 @@ static final class SchemaTableFormat implements OutputFormat { public void output(Schema schema) { List headers = Arrays.asList("schema", "comment"); List> rows = new ArrayList<>(); - rows.add( - Arrays.asList( - schema.name(), - schema.comment())); + rows.add(Arrays.asList(schema.name(), schema.comment() + "")); TableFormatImpl tableFormat = new TableFormatImpl(); tableFormat.print(headers, rows); }