You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Cheng Lian (JIRA)" <ji...@apache.org> on 2014/09/30 08:38:33 UTC

[jira] [Closed] (SPARK-3738) InsertIntoHiveTable can't handle strings with "\n"

     [ https://issues.apache.org/jira/browse/SPARK-3738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cheng Lian closed SPARK-3738.
-----------------------------
    Resolution: Invalid

False alarm, it's because of Hive's default SerDe, which uses '\n' as record delimiter.

> InsertIntoHiveTable can't handle strings with "\n"
> --------------------------------------------------
>
>                 Key: SPARK-3738
>                 URL: https://issues.apache.org/jira/browse/SPARK-3738
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.1.0
>            Reporter: Cheng Lian
>            Priority: Blocker
>
> Try the following snippet in {{sbt/sbt hive/console}} to reproduce:
> {code}
> sql("drop table if exists z")
> case class Str(s: String)
> sparkContext.parallelize(Str("a\nb") :: Nil, 1).saveAsTable("z")
> table("z").count()
> {code}
> Expected result should be 1, but 2 is returned instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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