We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 875e237 commit 4fa2ed3Copy full SHA for 4fa2ed3
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/csv/CSVRelation.scala
@@ -307,7 +307,6 @@ private[csv] object EncodingTextInputFormat {
307
bytes.slice(utf16beBOM.length, bytes.length)
308
case "UTF-16LE" if bytes.startsWith(utf16leBOM) =>
309
bytes.slice(utf16leBOM.length, bytes.length)
310
- bytes.slice(2, bytes.length)
311
case "UTF-32" | "UTF-32BE" if bytes.startsWith(utf32beBOM) =>
312
bytes.slice(utf32beBOM.length, bytes.length)
313
case "UTF-32LE" if bytes.startsWith(utf32leBOM) =>
0 commit comments