You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Imran Rashid (JIRA)" <ji...@apache.org> on 2015/12/29 21:41:49 UTC

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

Imran Rashid created SPARK-12560:
------------------------------------

             Summary: 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
            Priority: Minor


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