Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ protected Catalog getIcebergCatalog() {
@Override
public void createTable(TablePath tablePath, TableDescriptor tableDescriptor, Context context)
throws TableAlreadyExistException {
// validate single key field requirement
List<String> keys = tableDescriptor.getBucketKeys();
checkArgument(
keys.size() == 1,
"Key fields must have exactly one field for iceberg format, but got: %s",
keys);

// convert Fluss table path to iceberg table
boolean isPkTable = tableDescriptor.hasPrimaryKey();
TableIdentifier icebergId = toIcebergTableIdentifier(tablePath);
Expand Down
Loading