Skip to content

Commit f5675bd

Browse files
committed
char -> string
1 parent 7e2d0a4 commit f5675bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/WriterContainer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ private[sql] class DynamicPartitionWriterContainer(
288288
PartitioningUtils.escapePathName _, StringType, Seq(Cast(c, StringType)), Seq(StringType))
289289
val str = If(IsNull(c), Literal(defaultPartitionName), escaped)
290290
val partitionName = Literal(c.name + "=") :: str :: Nil
291-
if (i == 0) partitionName else Literal(Path.SEPARATOR_CHAR) :: partitionName
291+
if (i == 0) partitionName else Literal(Path.SEPARATOR_CHAR.toString) :: partitionName
292292
}.flatten
293293

294294
// Returns the partition path given a partition key.

0 commit comments

Comments
 (0)