From d20a146776280ee5a00a2a428fa854d1f0a8faae Mon Sep 17 00:00:00 2001 From: philo Date: Tue, 21 Jun 2022 20:11:52 +0800 Subject: [PATCH] Initial commit --- .../intel/oap/expression/ColumnarBinaryOperator.scala | 9 +++++++++ .../intel/oap/expression/ColumnarTernaryOperator.scala | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarBinaryOperator.scala b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarBinaryOperator.scala index 0234c5309..9048177f2 100644 --- a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarBinaryOperator.scala +++ b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarBinaryOperator.scala @@ -71,6 +71,11 @@ class ColumnarEndsWith(left: Expression, right: Expression, original: Expression extends EndsWith(left: Expression, right: Expression) with ColumnarExpression with Logging { + + override def supportColumnarCodegen(args: java.lang.Object): Boolean = { + false + } + override def doColumnarCodeGen(args: java.lang.Object): (TreeNode, ArrowType) = { val (left_node, left_type): (TreeNode, ArrowType) = left.asInstanceOf[ColumnarExpression].doColumnarCodeGen(args) @@ -149,6 +154,10 @@ class ColumnarRLike(left: Expression, right: Expression, original: Expression) } } + override def supportColumnarCodegen(args: java.lang.Object): Boolean = { + false + } + override def doColumnarCodeGen(args: java.lang.Object): (TreeNode, ArrowType) = { val (left_node, left_type): (TreeNode, ArrowType) = left.asInstanceOf[ColumnarExpression].doColumnarCodeGen(args) diff --git a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarTernaryOperator.scala b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarTernaryOperator.scala index 34dfea96c..af5ab4329 100644 --- a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarTernaryOperator.scala +++ b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ColumnarTernaryOperator.scala @@ -93,6 +93,10 @@ class ColumnarStringSplitPart(child: Expression, regex: Expression, } override def dataType: DataType = StringType + override def supportColumnarCodegen(args: java.lang.Object): Boolean = { + false + } + override def doColumnarCodeGen(args: java.lang.Object) : (TreeNode, ArrowType) = { val (child_node, childType): (TreeNode, ArrowType) =