[ 
https://issues.apache.org/jira/browse/HUDI-5147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alexander Trushev updated HUDI-5147:
------------------------------------
    Description: 
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}

  was:
When HepPlanner applies PushFilterIntoSourceScanRuleBase it copyies 
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}


> 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
>
> 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)

Reply via email to