Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
disable codegen on more cases
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <[email protected]>
  • Loading branch information
zhouyuan committed Sep 27, 2022
1 parent 8d0b5e0 commit d13cbac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,9 @@ case class ColumnarHashAggregateExec(
}
val internalExpressionList = expr.aggregateFunction.children
for (expr <- internalExpressionList) {
if (expr.isInstanceOf[Literal]) {
return false
}
val colExpr = ColumnarExpressionConverter.replaceWithColumnarExpression(expr)
if (!colExpr.asInstanceOf[ColumnarExpression].supportColumnarCodegen(
Lists.newArrayList())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ case class ColumnarCollapseCodegenStages(
*/
case p: ColumnarSortMergeJoinExec if p.left.isInstanceOf[ColumnarLocalLimitExec] =>
true
/**
* To filter Inner SMJ and its right child is Projection.
*/
case p: ColumnarSortMergeJoinExec if p.right.isInstanceOf[ColumnarConditionProjectExec]
&& p.joinType == Inner
&& (p.right.asInstanceOf[ColumnarConditionProjectExec].condition != null) =>
true
case _ =>
false
}
Expand Down

0 comments on commit d13cbac

Please sign in to comment.