wuchong commented on code in PR #1507:
URL: https://github.com/apache/fluss/pull/1507#discussion_r2265251678
##########
fluss-flink/fluss-flink-common/src/main/java/com/alibaba/fluss/flink/source/enumerator/FlinkSourceEnumerator.java:
##########
@@ -263,8 +264,13 @@ private List<SourceSplitBase> initNonPartitionedSplits() {
private Set<PartitionInfo> listPartitions() {
try {
- List<PartitionInfo> partitionInfos =
flussAdmin.listPartitionInfos(tablePath).get();
- partitionInfos = applyPartitionFilter(partitionInfos);
+ PartitionSpec partitionSpec =
convertFiltersToPartitionSpec(partitionFilters);
Review Comment:
We can convert the filter to `partialPartitionSpec` during the construction
of `FlinkSourceEnumerator` to avoid the repeated conversion for
`listPartitions`.
--
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]