[
https://issues.apache.org/jira/browse/HUDI-5147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sivabalan narayanan closed HUDI-5147.
-------------------------------------
Resolution: Fixed
> Flink data skipping doesn't work when HepPlanner calls copy() on
> HoodieTableSource
> ----------------------------------------------------------------------------------
>
> Key: HUDI-5147
> URL: https://issues.apache.org/jira/browse/HUDI-5147
> Project: Apache Hudi
> Issue Type: Bug
> Components: flink-sql
> Reporter: Alexander Trushev
> Assignee: Alexander Trushev
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.13.0
>
>
> When HepPlanner applies PushFilterIntoSourceScanRuleBase it copies
> HoodieTableSource
> {code:java}
> DynamicTableSource newTableSource = oldTableSourceTable.tableSource().copy();
> {code}
> Copying leads to the loss of List<ResolvedExpression> filters in FileIndex
> So candidateFilesInMetadataTable(allFileStatus) returns null due to
> {code:java}
> if (this.filters == null || this.filters.size() == 0) {
> return null;
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)