spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Gekk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SPARK-23724) Custom record separator for jsons in charsets different from UTF-8
Date Sat, 17 Mar 2018 13:46:00 GMT
Maxim Gekk created SPARK-23724:
----------------------------------

             Summary: Custom record separator for jsons in charsets different from UTF-8
                 Key: SPARK-23724
                 URL: https://issues.apache.org/jira/browse/SPARK-23724
             Project: Spark
          Issue Type: Sub-task
          Components: SQL
    Affects Versions: 2.4.0
            Reporter: Maxim Gekk


The option should define a sequence of bytes between two consecutive json records. Currently
the separator is detected automatically by hadoop library:
 
[https://github.com/apache/hadoop/blob/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/LineReader.java#L185-L254]
 
The method is able to recognize only *\r, \n* and *\r\n* in UTF-8 encoding. It doesn't
work in the cases if encoding of input stream is different from UTF-8. The option should allow
to users explicitly set separator/delimiter of json records.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message