Skip to content

Commit

Permalink
[hotfix][table-common] Fix TableSchemaUtils#getPhysicalSchema should …
Browse files Browse the repository at this point in the history
…keep the original constraint name
  • Loading branch information
wuchong committed Jun 11, 2020
1 parent 600ace2 commit 28cc602
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ public static TableSchema getPhysicalSchema(TableSchema tableSchema) {
}
});
tableSchema.getPrimaryKey().ifPresent(
uniqueConstraint -> builder.primaryKey(uniqueConstraint.getColumns().toArray(new String[0]))
uniqueConstraint -> builder.primaryKey(
uniqueConstraint.getName(),
uniqueConstraint.getColumns().toArray(new String[0]))
);
return builder.build();
}
Expand Down

0 comments on commit 28cc602

Please sign in to comment.