Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/14151#discussion_r137595908
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/text/TextFileFormat.scala
---
@@ -101,10 +111,24 @@ class TextFileFormat extends TextBasedFileFormat with
DataSourceRegister {
val broadcastedHadoopConf =
sparkSession.sparkContext.broadcast(new
SerializableConfiguration(hadoopConf))
+ val wholeText: Boolean = options.getOrElse("wholetext",
"false").toBoolean
+
+ readToUnsafeMem(broadcastedHadoopConf, requiredSchema,
+ wholeText)
--- End diff --
It fits one line
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]