Skip to content

Commit

Permalink
test case
Browse files Browse the repository at this point in the history
Signed-off-by: Murphy <[email protected]>
  • Loading branch information
murphyatwork committed Sep 3, 2024
1 parent 95878d5 commit 253a459
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public static boolean canPruneWithConjunct(ScalarOperator conjunct) {
* - conjunct: dt >= '2024-01-01'
* - generate-expr: month=date_trunc('MONTH', dt)
*/
public static List<String> deduceColumns(LogicalScanOperator scanOperator) {
public static List<String> deduceGenerateColumns(LogicalScanOperator scanOperator) {
List<String> partitionColumnNames = scanOperator.getTable().getPartitionColumnNames();
if (CollectionUtils.isEmpty(partitionColumnNames)) {
return Lists.newArrayList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1693,7 +1693,7 @@ public ScalarOperator removePartitionPredicate(ScalarOperator predicate, Operato
if (isTableTypeSupported && !optimizerContext.isObtainedFromInternalStatistics()) {
LogicalScanOperator scanOperator = operator.cast();
List<String> partitionColNames = scanOperator.getTable().getPartitionColumnNames();
partitionColNames.addAll(ListPartitionPruner.deduceColumns(scanOperator));
partitionColNames.addAll(ListPartitionPruner.deduceGenerateColumns(scanOperator));

List<ScalarOperator> conjuncts = Utils.extractConjuncts(predicate);
List<ScalarOperator> newPredicates = Lists.newArrayList();
Expand Down

0 comments on commit 253a459

Please sign in to comment.