From 3663b51de1411607e326a20ed20d5907ba311996 Mon Sep 17 00:00:00 2001 From: waukin Date: Tue, 21 Jan 2025 20:58:41 +0800 Subject: [PATCH] feat: add outputFormat to SchemaCommandHandler --- .../java/org/apache/gravitino/cli/SchemaCommandHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/SchemaCommandHandler.java b/clients/cli/src/main/java/org/apache/gravitino/cli/SchemaCommandHandler.java index 4a0cf919fb8..84e9070fb63 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/SchemaCommandHandler.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/SchemaCommandHandler.java @@ -35,6 +35,7 @@ public class SchemaCommandHandler extends CommandHandler { private final String metalake; private final String catalog; private String schema; + private final String outputFormat; /** * Constructs a {@link SchemaCommandHandler} instance. @@ -55,6 +56,7 @@ public SchemaCommandHandler( this.name = new FullName(line); this.metalake = name.getMetalakeName(); this.catalog = name.getCatalogName(); + this.outputFormat = line.getOptionValue(GravitinoOptions.OUTPUT); } @Override @@ -132,7 +134,7 @@ private void handleDetailsCommand() { .handle(); } else { gravitinoCommandLine - .newSchemaDetails(url, ignore, metalake, catalog, schema) + .newSchemaDetails(url, ignore, outputFormat, metalake, catalog, schema) .validate() .handle(); }