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 2016/01/19 21:27:40 UTC

[jira] [Updated] (SPARK-12560) SqlTestUtils.stripSparkFilter needs to copy utf8strings

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

Cheng Lian updated SPARK-12560:
-------------------------------
    Fix Version/s: 2.0.0

> SqlTestUtils.stripSparkFilter needs to copy utf8strings
> -------------------------------------------------------
>
>                 Key: SPARK-12560
>                 URL: https://issues.apache.org/jira/browse/SPARK-12560
>             Project: Spark
>          Issue Type: Test
>          Components: SQL
>            Reporter: Imran Rashid
>            Assignee: Imran Rashid
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> {{SqlTestUtils.stripSparkFilter}} needs to make copies of the UTF8Strings, eg., with {{FromUnsafeProjection}} to avoid returning duplicates of the same row (see SPARK-9459).
> Right now, this isn't causing any problems, since the parquet string predicate pushdown is turned off (see SPARK-11153).  However I ran into this while trying to get the predicate pushdown to work with a different version of parquet.  Without this fix, there were errors like:
> {noformat}
> [info]   !== Correct Answer - 4 ==   == Spark Answer - 4 ==
> [info]   ![1]                        [2]
> [info]    [2]                        [2]
> [info]   ![3]                        [4]
> [info]    [4]                        [4] (QueryTest.scala:127)
> {noformat}
> I figure its worth making this change now while I ran into it.  PR coming shortly



--
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