cshuo commented on code in PR #20866:
URL: https://github.com/apache/hudi/pull/20866#discussion_r4680043903
##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/prune/PartitionPruners.java:
##########
@@ -57,7 +57,7 @@ public interface PartitionPruner extends Serializable,
AutoCloseable {
/**
* Applies partition pruning on the given partition list, return remained
partitions.
*/
- Set<String> filter(Collection<String> partitions);
+ Set<String> filter(Collection<String> partitions, boolean hivePartition);
Review Comment:
Yes. We expect the reader and writer DDLs to agree on **Hive-style
partitioning**, so the reader can build the partition pruner during planning,
even before the table exists.
The same contract should apply to `table.type`. If the writer will create a
MOR table, the reader should declare MOR as well, so it can determine
`emitDelete` during planning. Under this contract, the two P1 comments above,
on partition pruning and delete emission, don’t require code changes. This
keeps the PR focused on letting Source V2 streaming reads start before table
creation and discover splits once the table exists.
--
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]