Github user cloud-fan commented on a diff in the pull request:
https://github.com/apache/spark/pull/20727#discussion_r175977344
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/HadoopFileLinesReader.scala
---
@@ -30,9 +30,19 @@ import
org.apache.hadoop.mapreduce.task.TaskAttemptContextImpl
/**
* An adaptor from a [[PartitionedFile]] to an [[Iterator]] of [[Text]],
which are all of the lines
* in that file.
+ *
+ * @param file A part (i.e. "block") of a single file that should be read
line by line.
+ * @param lineSeparator A line separator that should be used for each
line. If the value is `None`,
+ * it covers `\r`, `\r\n` and `\n`.
--- End diff --
We should mention that this default rule is not defined by us, but by
hadoop.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]