Skip to content

Commit f406d4e

Browse files
committed
fix bucket num
1 parent 7665e40 commit f406d4e

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

fluss-lake/fluss-lake-iceberg/src/test/java/org/apache/fluss/lake/iceberg/tiering/IcebergTieringTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ void testTieringWriteTable(boolean isPrimaryKeyTable, boolean isPartitionedTable
130130
.column("c2", DataTypes.STRING())
131131
.column("c3", DataTypes.STRING())
132132
.build())
133+
.distributedBy(BUCKET_NUM)
133134
.property(ConfigOptions.TABLE_DATALAKE_ENABLED, true)
134135
.build();
135136
TableInfo tableInfo = TableInfo.of(tablePath, 0, 1, descriptor, 1L, 1L);

fluss-lake/fluss-lake-lance/src/test/java/com/alibaba/fluss/lake/lance/tiering/LanceTieringTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ void testTieringWriteTable(boolean isPartitioned) throws Exception {
102102
TableDescriptor descriptor =
103103
TableDescriptor.builder()
104104
.schema(schema)
105+
.distributedBy(bucketNum)
105106
.property(ConfigOptions.TABLE_DATALAKE_ENABLED, true)
106107
.customProperties(customProperties)
107108
.build();

fluss-lake/fluss-lake-paimon/src/test/java/org/apache/fluss/lake/paimon/tiering/PaimonTieringTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ void testTieringWriteTable(boolean isPrimaryKeyTable, boolean isPartitioned) thr
129129
.column("c2", org.apache.fluss.types.DataTypes.STRING())
130130
.column("c3", org.apache.fluss.types.DataTypes.STRING())
131131
.build())
132+
.distributedBy(bucketNum)
132133
.property(ConfigOptions.TABLE_DATALAKE_ENABLED, true)
133134
.build();
134135
TableInfo tableInfo = TableInfo.of(tablePath, 0, 1, descriptor, 1L, 1L);
@@ -257,6 +258,7 @@ void testMultiPartitionTiering() throws Exception {
257258
.column("year", org.apache.fluss.types.DataTypes.STRING())
258259
.build())
259260
.partitionedBy("region", "year")
261+
.distributedBy(1)
260262
.property(ConfigOptions.TABLE_DATALAKE_ENABLED, true)
261263
.build();
262264
TableInfo tableInfo = TableInfo.of(tablePath, 0, 1, descriptor, 1L, 1L);
@@ -333,6 +335,7 @@ void testThreePartitionTiering() throws Exception {
333335
.column("month", org.apache.fluss.types.DataTypes.STRING())
334336
.build())
335337
.partitionedBy("region", "year", "month")
338+
.distributedBy(1)
336339
.property(ConfigOptions.TABLE_DATALAKE_ENABLED, true)
337340
.build();
338341
TableInfo tableInfo = TableInfo.of(tablePath, 0, 1, descriptor, 1L, 1L);

0 commit comments

Comments
 (0)