You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fluss.apache.org by "wuchong (via GitHub)" <gi...@apache.org> on 2025/08/10 12:06:51 UTC
Re: [PR] [server] Push partition filtering to the server-side to reduce network bandwidth usage. [fluss]
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: issues-unsubscribe@fluss.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org