Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21192#discussion_r185472990
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/JSONOptions.scala
 ---
    @@ -120,8 +120,26 @@ private[sql] class JSONOptions(
           enc
       }
     
    -  val lineSeparatorInRead: Option[Array[Byte]] = lineSeparator.map { 
lineSep =>
    -    lineSep.getBytes(encoding.getOrElse("UTF-8"))
    +  /**
    +   * A sequence of bytes between two consecutive json records in read.
    +   * Format of the `lineSep` option is:
    +   *   selector (1 char) + separator spec (any length) | sequence of chars
    +   *
    +   * Currently the following selectors are supported:
    +   * - 'x' + sequence of bytes in hexadecimal format. For example: "x0a 
0d".
    --- End diff --
    
    I don't know why they are stuck. I was just thinking of doing sequence of 
bytes separately since I feel in the same way about the need and there's a PR 
that potentially covers this case.
    I am less sure about other formats yet - don't feel strongly but I don't 
have better alternatives yet.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to