Skip to content

Commit

Permalink
[columnar] Skip vectorization if custom scan is not ColumnarScan (#228)
Browse files Browse the repository at this point in the history
* In presence of another custom scan, aggregator node will be still
  vectorized which can be problematic. Skip vectorization if custom scan
  is differnt than ColumnarScan.
  • Loading branch information
mkaruza authored Jan 25, 2024
1 parent 9d98073 commit 590a92a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions columnar/src/backend/columnar/columnar_planner_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ PlanTreeMutator(Plan *node, void *context)

customScan->custom_private = lappend(customScan->custom_private, vectorizedAggregateExecution);
}
else
{
elog(ERROR, "Custom Scan type is not ColumnarScan.");
}

break;
}
Expand Down

0 comments on commit 590a92a

Please sign in to comment.