Skip to content

Commit 553b8b5

Browse files
authored
Support reading Bool type (#207)
1 parent 606c005 commit 553b8b5

File tree

1 file changed

+1
-0
lines changed
  • spark-3.3/clickhouse-spark/src/main/scala/org/apache/spark/sql/clickhouse

1 file changed

+1
-0
lines changed

spark-3.3/clickhouse-spark/src/main/scala/org/apache/spark/sql/clickhouse/SchemaUtils.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ object SchemaUtils {
3838
val (unwrappedChType, nullable) = unwrapNullable(unwrapLowCardinalityTypePattern(chType))
3939
val catalystType = unwrappedChType match {
4040
case "String" | "UUID" | fixedStringTypePattern() | enumTypePattern(_) => StringType
41+
case "Bool" => BooleanType
4142
case "Int8" => ByteType
4243
case "UInt8" | "Int16" => ShortType
4344
case "UInt16" | "Int32" => IntegerType

0 commit comments

Comments
 (0)