spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-23724) Custom record separator for jsons in charsets different from UTF-8
Date Mon, 07 May 2018 03:41:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-23724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16465399#comment-16465399
] 

Apache Spark commented on SPARK-23724:
--------------------------------------

User 'gatorsmile' has created a pull request for this issue:
https://github.com/apache/spark/pull/21254

> 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
>            Assignee: Maxim Gekk
>            Priority: Major
>             Fix For: 2.4.0
>
>
> 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