Skip to content

Commit

Permalink
GpuStringSplit returns an array on not-null elements(#4716)
Browse files Browse the repository at this point in the history
Signed-off-by: remzi <13716567376yh@gmail.com>
  • Loading branch information
HaoYang670 authored Feb 8, 2022
1 parent 43d26cc commit 7f4ac58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1346,7 +1346,7 @@ class GpuStringSplitMeta(
case class GpuStringSplit(str: Expression, regex: Expression, limit: Expression)
extends GpuTernaryExpression with ImplicitCastInputTypes {

override def dataType: DataType = ArrayType(StringType)
override def dataType: DataType = ArrayType(StringType, containsNull = false)
override def inputTypes: Seq[DataType] = Seq(StringType, StringType, IntegerType)
override def first: Expression = str
override def second: Expression = regex
Expand Down

0 comments on commit 7f4ac58

Please sign in to comment.