beyond1920 commented on code in PR #8102:
URL: https://github.com/apache/hudi/pull/8102#discussion_r1157216410
##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/table/ITTestHoodieDataSource.java:
##########
@@ -1835,6 +1885,75 @@ private static Stream<Arguments>
indexAndTableTypeParams() {
return Stream.of(data).map(Arguments::of);
}
+ /**
+ * Return test params => (HoodieTableType, hive style partitioning, filter
condition, expected result).
+ */
+ private static Stream<Arguments> tableTypeAndFilters() {
+ HoodieTableType[] tableTypes = {HoodieTableType.COPY_ON_WRITE,
HoodieTableType.MERGE_ON_READ};
+ boolean [] isHiveStylePartitions = {true, false};
+ Pair<String, List<RowData>>[] filterAndResults = new Pair[] {
+ Pair.of(
+ "`partition` = 'par5' or `partition` = 'par6'",
+ Arrays.asList(
+ insertRow(StringData.fromString("id9"),
StringData.fromString("LiLi"), 24,
+ TimestampData.fromEpochMillis(9),
StringData.fromString("par5")))),
+ Pair.of(
+ "`partition` >= 'par5' and `partition` <= 'par6'",
+ Arrays.asList(
+ insertRow(StringData.fromString("id9"),
StringData.fromString("LiLi"), 24,
+ TimestampData.fromEpochMillis(9),
StringData.fromString("par5")))),
+ Pair.of(
+ "`partition` <> 'par7'",
+ Arrays.asList(
+ insertRow(StringData.fromString("id1"),
StringData.fromString("Danny"), 23,
+ TimestampData.fromEpochMillis(1),
StringData.fromString("par1")),
+ insertRow(StringData.fromString("id2"),
StringData.fromString("Stephen"), 33,
+ TimestampData.fromEpochMillis(2),
StringData.fromString("par1")),
+ insertRow(StringData.fromString("id3"),
StringData.fromString("Julian"), 53,
Review Comment:
Already use one input data set.
Those data is output data, which is different based on different filter
conditions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]