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

Commit

Permalink
Let supportColumnarCodegen return false
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Apr 19, 2022
1 parent 19f8942 commit b9c87ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ class ColumnarStringLocate(substr: Expression, str: Expression,
}
}

override def supportColumnarCodegen(args: java.lang.Object): Boolean = {
false
}

override def doColumnarCodeGen(args: java.lang.Object) : (TreeNode, ArrowType) = {
val (substr_node, _): (TreeNode, ArrowType) =
substr.asInstanceOf[ColumnarExpression].doColumnarCodeGen(args)
Expand All @@ -176,6 +180,10 @@ class ColumnarRegExpExtract(subject: Expression, regexp: Expression, idx: Expres
}
}

override def supportColumnarCodegen(args: java.lang.Object): Boolean = {
false
}

override def doColumnarCodeGen(args: Object): (TreeNode, ArrowType) = {
val (subject_node, _): (TreeNode, ArrowType) =
subject.asInstanceOf[ColumnarExpression].doColumnarCodeGen(args)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,10 @@ class ColumnarLength(child: Expression) extends Length(child: Expression)
}
}

override def supportColumnarCodegen(args: java.lang.Object): Boolean = {
false
}

override def doColumnarCodeGen(args: java.lang.Object): (TreeNode, ArrowType) = {
val (child_node, _): (TreeNode, ArrowType) =
child.asInstanceOf[ColumnarExpression].doColumnarCodeGen(args)
Expand Down

0 comments on commit b9c87ec

Please sign in to comment.