diff --git a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarConcatOperator.scala b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarConcatOperator.scala index c0384f389..26649c535 100644 --- a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarConcatOperator.scala +++ b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarConcatOperator.scala @@ -118,6 +118,12 @@ class ColumnarConcat(exps: Seq[Expression], original: Expression) } override def doColumnarCodeGen(args: java.lang.Object): (TreeNode, ArrowType) = { + if (exps.size == 1) { + val (exp_node, expType): (TreeNode, ArrowType) = + exps.head.asInstanceOf[ColumnarExpression].doColumnarCodeGen(args) + return (exp_node, expType) + } + val iter: Iterator[Expression] = exps.iterator val exp = iter.next() val iterFaster: Iterator[Expression] = exps.iterator