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

    https://github.com/apache/spark/pull/20937#discussion_r178427033
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/json/CreateJacksonParser.scala
 ---
    @@ -39,11 +40,36 @@ private[sql] object CreateJacksonParser extends 
Serializable {
         jsonFactory.createParser(new InputStreamReader(bain, "UTF-8"))
       }
     
    -  def text(jsonFactory: JsonFactory, record: Text): JsonParser = {
    -    jsonFactory.createParser(record.getBytes, 0, record.getLength)
    +  def text(jsonFactory: JsonFactory, record: Text, charset: Option[String] 
= None): JsonParser = {
    +    charset match {
    --- End diff --
    
    `:%s/charset/encoding` .. 


---

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

Reply via email to