Skip to content

Commit

Permalink
generate table open api define
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-024 committed Dec 24, 2024
1 parent 09368b3 commit 064c205
Show file tree
Hide file tree
Showing 3 changed files with 374 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public CreateTableRequest(
@JsonProperty(FIELD_IDENTIFIER) Identifier identifier,
@JsonProperty(FIELD_SCHEMA) Schema schema) {
this.schema = schema;
this.identifier = identifier;
}

@JsonGetter(FIELD_IDENTIFIER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ public static UpdateTableRequest updateTableRequest(String fromTableName, String
// remove option
SchemaChange removeOption = SchemaChange.removeOption("compaction.max.file-num");
// add column
SchemaChange addColumn = SchemaChange.addColumn("col1_after", DataTypes.STRING());
SchemaChange addColumn =
SchemaChange.addColumn("col1_after", DataTypes.ARRAY(DataTypes.STRING()));
// add a column after col1
SchemaChange.Move after = SchemaChange.Move.after("col1_after", "col1");
SchemaChange addColumnAfterField =
Expand Down
Loading

0 comments on commit 064c205

Please sign in to comment.