Skip to content

Commit 999ec61

Browse files
committed
missing BooleanType
1 parent 68c7a13 commit 999ec61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ case class PostgreCastToBoolean(child: Expression, timeZoneId: Option[String])
3333
copy(timeZoneId = Option(timeZoneId))
3434

3535
override def checkInputDataTypes(): TypeCheckResult = child.dataType match {
36-
case StringType | IntegerType | NullType =>
36+
case BooleanType | StringType | IntegerType | NullType =>
3737
TypeCheckResult.TypeCheckSuccess
3838
case _ =>
3939
TypeCheckResult.TypeCheckFailure(s"cannot cast type ${child.dataType} to boolean")

0 commit comments

Comments
 (0)