File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
catalyst/src/main/scala/org/apache/spark/sql/catalyst/json
core/src/main/scala/org/apache/spark/sql/execution/datasources/csv Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ package org.apache.spark.sql.catalyst.json
2020import java .nio .charset .StandardCharsets
2121import java .util .{Locale , TimeZone }
2222
23+ import scala .collection .immutable .ListMap
24+
2325import com .fasterxml .jackson .core .{JsonFactory , JsonParser }
2426import org .apache .commons .lang3 .time .FastDateFormat
2527
@@ -108,5 +110,5 @@ private[sql] class JSONOptions(
108110 factory.configure(JsonParser .Feature .ALLOW_UNQUOTED_CONTROL_CHARS , allowUnquotedControlChars)
109111 }
110112
111- val textOptions = parameters.originalMap
113+ val textOptions = ListMap ( parameters.toList : _* )
112114}
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ package org.apache.spark.sql.execution.datasources.csv
2020import java .nio .charset .StandardCharsets
2121import java .util .{Locale , TimeZone }
2222
23+ import scala .collection .immutable .ListMap
24+
2325import com .univocity .parsers .csv .{CsvParserSettings , CsvWriterSettings , UnescapedQuoteHandling }
2426import org .apache .commons .lang3 .time .FastDateFormat
2527
@@ -187,5 +189,5 @@ class CSVOptions(
187189 settings
188190 }
189191
190- val textOptions = parameters.originalMap
192+ val textOptions = ListMap ( parameters.toList : _* )
191193}
You can’t perform that action at this time.
0 commit comments