Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearvive authored and Clearvive committed Feb 29, 2024
1 parent 530fc85 commit e0500a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,9 @@ public Table alterTable(NameIdentifier tableIdent, TableChange... changes)
} else if (change instanceof TableChange.UpdateColumnType) {
doUpdateColumnType(cols, (TableChange.UpdateColumnType) change);

} else if (change instanceof TableChange.UpdateColumnAutoIncrement) {
throw new IllegalArgumentException(
"Hive does not support altering column auto increment");
} else {
throw new IllegalArgumentException(
"Unsupported column change type: " + change.getClass().getSimpleName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ private void alterTableColumn(
} else if (change instanceof TableChange.UpdateColumnNullability) {
doUpdateColumnNullability(
icebergUpdateSchema, (TableChange.UpdateColumnNullability) change);
} else if (change instanceof TableChange.UpdateColumnAutoIncrement) {
throw new IllegalArgumentException("Iceberg doesn't support auto increment column");
} else {
throw new NotSupportedException(
"Iceberg doesn't support " + change.getClass().getSimpleName() + " for now");
Expand Down

0 comments on commit e0500a5

Please sign in to comment.