You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/04/01 07:16:23 UTC

[GitHub] [flink-table-store] JingsongLi commented on a change in pull request #69: [FLINK-26857] Add ITCase for projection and filter predicate

JingsongLi commented on a change in pull request #69:
URL: https://github.com/apache/flink-table-store/pull/69#discussion_r840303084



##########
File path: flink-table-store-connector/src/main/java/org/apache/flink/table/store/connector/source/TableStoreSource.java
##########
@@ -159,14 +158,12 @@ public String asSummaryString() {
 
     @Override
     public Result applyFilters(List<ResolvedExpression> filters) {
-        if (tableStore.partitioned()) {
+        if (logStoreTableFactory == null && tableStore.partitioned()) {
             classifyFilters(filters);
         } else {
             fieldFilters = filters;
         }
-        return Result.of(
-                new ArrayList<>(filters),
-                fieldFilters == null ? Collections.emptyList() : fieldFilters);
+        return Result.of(new ArrayList<>(filters), fieldFilters);

Review comment:
       I think it is better to here: `isStreaming && logStoreTableFactory != null ? filters : fieldFilters`.
   - First, I think you lack isStreaming. `logStoreTableFactory` always exists when log.system=kafka.
   - Second, Even if there is log system, the case of hybrid needs partition filter to filter filestore a large amount of data, which is very important.




-- 
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@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org