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

[NSE-1196] Fix: concat with only one expression #1197

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down