Skip to content

Commit 30373de

Browse files
committed
mapping Spark BinaryType to Fluss BytesType
1 parent 0982b5d commit 30373de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fluss-spark/fluss-spark-common/src/main/scala/org/apache/fluss/spark/types/SparkToFlussTypeVisitor.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ object SparkToFlussTypeVisitor {
7575
new DoubleType()
7676
case dt: org.apache.spark.sql.types.DecimalType =>
7777
new DecimalType(dt.precision, dt.scale)
78-
case _: org.apache.spark.sql.types.BinaryType =>
79-
new BinaryType(BinaryType.MAX_LENGTH)
78+
case x: org.apache.spark.sql.types.BinaryType =>
79+
new BytesType()
8080
case _: org.apache.spark.sql.types.VarcharType =>
8181
new StringType()
8282
case ct: org.apache.spark.sql.types.CharType =>

0 commit comments

Comments
 (0)