[I4CEKZ] fixed dynamic filter invocation criteria in HivePageSource
This commit is contained in:
parent
4e6c3fdcf3
commit
1b4fa7e30d
|
|
@ -307,6 +307,7 @@ public class HivePageSource
|
|||
|
||||
private List<Map<Integer, ColumnHandle>> getEligibleColumnsForRowFiltering(int channelCount, List<Map<ColumnHandle, DynamicFilter>> dynamicFilters)
|
||||
{
|
||||
boolean eligibleFilterFound = false;
|
||||
List<Map<Integer, ColumnHandle>> eligibleColumnsList = new ArrayList<>();
|
||||
for (Map<ColumnHandle, DynamicFilter> dynamicFilter : dynamicFilters) {
|
||||
Map<Integer, ColumnHandle> eligibleColumns = new HashMap<>();
|
||||
|
|
@ -319,8 +320,15 @@ public class HivePageSource
|
|||
}
|
||||
}
|
||||
|
||||
if (eligibleColumns.size() > 0) {
|
||||
eligibleFilterFound = true;
|
||||
}
|
||||
eligibleColumnsList.add(eligibleColumns);
|
||||
}
|
||||
|
||||
if (eligibleFilterFound == false) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return eligibleColumnsList;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue