Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add NullIntolerant trait
  • Loading branch information
gengliangwang committed Sep 25, 2019
commit 72a1539996c5d90daec0649e7212123742bf6d36
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ import org.apache.spark.sql.catalyst.util.postgreSQL.StringUtils
import org.apache.spark.sql.types.{BooleanType, DataType, StringType}
import org.apache.spark.unsafe.types.UTF8String

case class PostgreCastStringToBoolean(child: Expression) extends UnaryExpression {
case class PostgreCastStringToBoolean(child: Expression)
extends UnaryExpression with NullIntolerant {

override def checkInputDataTypes(): TypeCheckResult = {
if (child.dataType == StringType) {
Expand Down