diff --git a/native-sql-engine/core/src/main/scala/com/intel/oap/execution/ColumnarShuffledHashJoinExec.scala b/native-sql-engine/core/src/main/scala/com/intel/oap/execution/ColumnarShuffledHashJoinExec.scala index 216510b25..eb7af868f 100644 --- a/native-sql-engine/core/src/main/scala/com/intel/oap/execution/ColumnarShuffledHashJoinExec.scala +++ b/native-sql-engine/core/src/main/scala/com/intel/oap/execution/ColumnarShuffledHashJoinExec.scala @@ -128,6 +128,14 @@ case class ColumnarShuffledHashJoinExec( case _ => throw new UnsupportedOperationException(s"Join Type ${joinType} is not supported yet.") } + // build check for leftKeys and rightKeys + leftKeys.union(rightKeys).foreach { expr => + val keyExpr = + ColumnarExpressionConverter.replaceWithColumnarExpression(expr) + val supportCodegen = + keyExpr.asInstanceOf[ColumnarExpression].supportColumnarCodegen(null) + this.supportCodegen = this.supportCodegen && supportCodegen + } // build check for condition val conditionExpr: Expression = condition.orNull if (conditionExpr != null) {