Skip to content

Commit d0066f3

Browse files
committed
fix: adjust format
1 parent 8cefde5 commit d0066f3

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

clients/cli/src/main/java/org/apache/gravitino/cli/TestableCommandLine.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,12 @@ protected SchemaAudit newSchemaAudit(
265265
}
266266

267267
protected SchemaDetails newSchemaDetails(
268-
String url, boolean ignore, String outputFormat, String metalake, String catalog, String schema) {
268+
String url,
269+
boolean ignore,
270+
String outputFormat,
271+
String metalake,
272+
String catalog,
273+
String schema) {
269274
return new SchemaDetails(url, ignore, outputFormat, metalake, catalog, schema);
270275
}
271276

clients/cli/src/main/java/org/apache/gravitino/cli/commands/SchemaDetails.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ public class SchemaDetails extends Command {
4444
* @param schema The name of the schenma.
4545
*/
4646
public SchemaDetails(
47-
String url, boolean ignoreVersions, String outputFormat, String metalake, String catalog, String schema) {
47+
String url,
48+
boolean ignoreVersions,
49+
String outputFormat,
50+
String metalake,
51+
String catalog,
52+
String schema) {
4853
super(url, ignoreVersions, outputFormat);
4954
this.metalake = metalake;
5055
this.catalog = catalog;

clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,7 @@ static final class SchemaTableFormat implements OutputFormat<Schema> {
111111
public void output(Schema schema) {
112112
List<String> headers = Arrays.asList("schema", "comment");
113113
List<List<String>> rows = new ArrayList<>();
114-
rows.add(
115-
Arrays.asList(
116-
schema.name(),
117-
schema.comment()));
114+
rows.add(Arrays.asList(schema.name(), schema.comment() + ""));
118115
TableFormatImpl tableFormat = new TableFormatImpl();
119116
tableFormat.print(headers, rows);
120117
}

0 commit comments

Comments
 (0)