Skip to content

Commit 32decb5

Browse files
committed
[flink]Support partition pushdown in Flink connector
1 parent 76d037e commit 32decb5

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

fluss-flink/fluss-flink-common/src/test/java/com/alibaba/fluss/flink/source/FlinkTableSourceITCase.java

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,39 +1153,6 @@ private List<String> writeRowsToTwoPartition(TablePath tablePath, Collection<Str
11531153
@Test
11541154
void testStreamingReadPartitionPushDownWithInExpr() throws Exception {
11551155

1156-
// tEnv.executeSql(
1157-
// "create table partitioned_table"
1158-
// + " (a int not null, b varchar, c string, primary key (a, c) NOT
1159-
// ENFORCED) partitioned by (c) "
1160-
// + "with ('table.auto-partition.enabled' = 'true',
1161-
// 'table.auto-partition.time-unit' = 'year')");
1162-
// TablePath tablePath = TablePath.of(DEFAULT_DB, "partitioned_table");
1163-
//
1164-
// // write data into partitions and wait snapshot is done
1165-
// Map<Long, String> partitionNameById =
1166-
// waitUntilPartitions(FLUSS_CLUSTER_EXTENSION.getZooKeeperClient(),
1167-
// tablePath);
1168-
// List<String> expectedRowValues =
1169-
// writeRowsToPartition(tablePath, partitionNameById.values()).stream()
1170-
// .filter(s -> s.contains("2025"))
1171-
// .collect(Collectors.toList());
1172-
// waitUtilAllBucketFinishSnapshot(admin, tablePath, partitionNameById.values());
1173-
//
1174-
// org.apache.flink.util.CloseableIterator<Row> rowIter =
1175-
// tEnv.executeSql("select * from partitioned_table where c in(
1176-
// '2000','2001','2025')")
1177-
// .collect();
1178-
//
1179-
// assertResultsIgnoreOrder(rowIter, expectedRowValues, false);
1180-
//
1181-
// // then create some new partitions, and write rows to the new partitions
1182-
// List<String> newPartitions = Arrays.asList("2000", "2001");
1183-
// FlinkTestBase.createPartitions(
1184-
// FLUSS_CLUSTER_EXTENSION.getZooKeeperClient(), tablePath, newPartitions);
1185-
// // write data to the new partitions
1186-
// expectedRowValues = writeRowsToPartition(tablePath, newPartitions);
1187-
// assertResultsIgnoreOrder(rowIter, expectedRowValues, true);
1188-
11891156
tEnv.executeSql(
11901157
"create table partitioned_table_in"
11911158
+ " (a int not null, b varchar, c string, primary key (a, c) NOT ENFORCED) partitioned by (c) ");

0 commit comments

Comments
 (0)