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

Commit

Permalink
[NSE-987] fix string date (#988)
Browse files Browse the repository at this point in the history
* fix string date

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>

* disable codegen on STRING Date

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>

* Revert "fix string date"

This reverts commit 1a9fa29.
  • Loading branch information
zhouyuan authored Jun 28, 2022
1 parent 1affa5b commit ed7a104
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,14 @@ class ColumnarYear(child: Expression, original: Expression)
}
}

override def supportColumnarCodegen(args: java.lang.Object): Boolean = {
if (child.dataType == StringType) {
//STRING Date type is not supported in codegen
return false
}
true && child.asInstanceOf[ColumnarExpression].supportColumnarCodegen(args)
}

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

0 comments on commit ed7a104

Please sign in to comment.