Kamesh Sampath
01/31/2025, 7:47 AMEquality field columns shouldn't be empty when configuring to use UPSERT data stream.Kamesh Sampath
01/31/2025, 7:47 AMfinal ResolvedSchema leaderboardSchema =
ResolvedSchema.of(
Column.physical("player", DataTypes.STRING().notNull()),
Column.physical("balloon_color", DataTypes.STRING().notNull()),
Column.physical("score", DataTypes.INT().notNull()),
Column.physical("favorite_color_bonus", DataTypes.BOOLEAN()),
Column.physical("event_ts", DataTypes.TIMESTAMP_LTZ(3))
);
and
Schema schema =
Schema.newBuilder()
.fromResolvedSchema(leaderboardSchema)
.build();
CatalogTable leaderboardTable =
CatalogTable.newBuilder()
.schema(schema)
.options(EnvUtil.icebergTableProps())
.partitionKeys(partitionKeys)
.build();
ResolvedCatalogTable resolvedCatalogTable =
new ResolvedCatalogTable(leaderboardTable, leaderboardSchema);
balloonGameCatalog.createTable(tablePath, resolvedCatalogTable, true);Kamesh Sampath
01/31/2025, 7:48 AMKamesh Sampath
01/31/2025, 7:48 AM