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

liyunzhang_intel updated PIG-4284:
----------------------------------
    Attachment: PIG-4284_2.patch

PIG-4284.patch is based on 4ca0ffb - (HEAD, origin/spark, spark) PIG-4568: Fix 
unit test failure in TestSecondarySortSpark.
Changes are:
1. modify equals() and hashCode() in IndexedKey. In previous patch, if the key 
of a IndexKey is not null, i only assign the key value, the index value is 
default value 0. In current patch, i assign the key and index value.
in equals(), compare the index and value matching following cases:
{code}
     * There are two possible cases when two tuples are compared:
         * 1) Compare tuples of same table (same index)
         * 2) Compare tuples of different tables (different index values)
         * In 1)
         * key1    key2    equal?
         * foo     null      N
         * null    foo       N
         * foo     foo       Y
         * null    null      Y
         *
         * In 2)
         * key1    key2    equal?
         * foo     null     N
         * null    foo      N
         * foo     foo      Y
         * null    null     N
{code}

> Enable unit test "TestJoin" for spark
> -------------------------------------
>
>                 Key: PIG-4284
>                 URL: https://issues.apache.org/jira/browse/PIG-4284
>             Project: Pig
>          Issue Type: Sub-task
>          Components: spark
>            Reporter: liyunzhang_intel
>            Assignee: liyunzhang_intel
>             Fix For: spark-branch
>
>         Attachments: PIG-4284.patch, PIG-4284_1.patch, PIG-4284_2.patch, 
> TEST-org.apache.pig.test.TestJoin.txt
>
>
> error is attached



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

Reply via email to