Skip to content

Commit 72a1539

Browse files
committed
add NullIntolerant trait
1 parent 82a9e4d commit 72a1539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/postgreSQL/PostgreCastStringToBoolean.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ import org.apache.spark.sql.catalyst.util.postgreSQL.StringUtils
2424
import org.apache.spark.sql.types.{BooleanType, DataType, StringType}
2525
import org.apache.spark.unsafe.types.UTF8String
2626

27-
case class PostgreCastStringToBoolean(child: Expression) extends UnaryExpression {
27+
case class PostgreCastStringToBoolean(child: Expression)
28+
extends UnaryExpression with NullIntolerant {
2829

2930
override def checkInputDataTypes(): TypeCheckResult = {
3031
if (child.dataType == StringType) {

0 commit comments

Comments
 (0)