Skip to content

Commit

Permalink
fix: adjust format
Browse files Browse the repository at this point in the history
  • Loading branch information
waukin committed Dec 26, 2024
1 parent af16cd9 commit a1d05b6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ static final class SchemaTableFormat implements OutputFormat<Schema> {
public void output(Schema schema) {
List<String> headers = Arrays.asList("schema", "comment");
List<List<String>> 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);
}
Expand Down

0 comments on commit a1d05b6

Please sign in to comment.