[jira] [Updated] (PIG-3609) ClassCastException when calling compareTo method on AvroBagWrapper
[ https://issues.apache.org/jira/browse/PIG-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Cheolsoo Park updated PIG-3609: --- Resolution: Fixed Fix Version/s: 0.13.0 Status: Resolved (was: Patch Available) Committed to trunk. Thank you Richard! > ClassCastException when calling compareTo method on AvroBagWrapper > --- > > Key: PIG-3609 > URL: https://issues.apache.org/jira/browse/PIG-3609 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.12.0 >Reporter: Richard Ding >Assignee: Richard Ding >Priority: Minor > Fix For: 0.13.0 > > Attachments: PIG-3609.patch, PIG-3609_2.patch, PIG-3609_3.patch > > > One got the following exception when calling compareTo method on > AvroBagWrapper with an AvroBagWrapper object: > {code} > java.lang.ClassCastException: org.apache.pig.impl.util.avro.AvroBagWrapper > incompatible with java.util.Collection > at org.apache.avro.generic.GenericData.compare(GenericData.java:786) > at org.apache.avro.generic.GenericData.compare(GenericData.java:760) > at > org.apache.pig.impl.util.avro.AvroBagWrapper.compareTo(AvroBagWrapper.java:78) > {code} > Looking at the code, it compares objects with different types: > {code} > return GenericData.get().compare(theArray, o, theArray.getSchema()); > {code} -- This message was sent by Atlassian JIRA (v6.1.5#6160)
[jira] [Updated] (PIG-3609) ClassCastException when calling compareTo method on AvroBagWrapper
[ https://issues.apache.org/jira/browse/PIG-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Cheolsoo Park updated PIG-3609: --- Attachment: PIG-3609_3.patch I am attaching a patch that addresses my comments. I'll commit this if you agree. Thank! > ClassCastException when calling compareTo method on AvroBagWrapper > --- > > Key: PIG-3609 > URL: https://issues.apache.org/jira/browse/PIG-3609 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.12.0 >Reporter: Richard Ding >Assignee: Richard Ding >Priority: Minor > Attachments: PIG-3609.patch, PIG-3609_2.patch, PIG-3609_3.patch > > > One got the following exception when calling compareTo method on > AvroBagWrapper with an AvroBagWrapper object: > {code} > java.lang.ClassCastException: org.apache.pig.impl.util.avro.AvroBagWrapper > incompatible with java.util.Collection > at org.apache.avro.generic.GenericData.compare(GenericData.java:786) > at org.apache.avro.generic.GenericData.compare(GenericData.java:760) > at > org.apache.pig.impl.util.avro.AvroBagWrapper.compareTo(AvroBagWrapper.java:78) > {code} > Looking at the code, it compares objects with different types: > {code} > return GenericData.get().compare(theArray, o, theArray.getSchema()); > {code} -- This message was sent by Atlassian JIRA (v6.1.4#6159)
[jira] [Updated] (PIG-3609) ClassCastException when calling compareTo method on AvroBagWrapper
[ https://issues.apache.org/jira/browse/PIG-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Ding updated PIG-3609: -- Attachment: PIG-3609_2.patch New patch with a test case. > ClassCastException when calling compareTo method on AvroBagWrapper > --- > > Key: PIG-3609 > URL: https://issues.apache.org/jira/browse/PIG-3609 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.12.0 >Reporter: Richard Ding >Assignee: Richard Ding >Priority: Minor > Attachments: PIG-3609.patch, PIG-3609_2.patch > > > One got the following exception when calling compareTo method on > AvroBagWrapper with an AvroBagWrapper object: > {code} > java.lang.ClassCastException: org.apache.pig.impl.util.avro.AvroBagWrapper > incompatible with java.util.Collection > at org.apache.avro.generic.GenericData.compare(GenericData.java:786) > at org.apache.avro.generic.GenericData.compare(GenericData.java:760) > at > org.apache.pig.impl.util.avro.AvroBagWrapper.compareTo(AvroBagWrapper.java:78) > {code} > Looking at the code, it compares objects with different types: > {code} > return GenericData.get().compare(theArray, o, theArray.getSchema()); > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Updated] (PIG-3609) ClassCastException when calling compareTo method on AvroBagWrapper
[ https://issues.apache.org/jira/browse/PIG-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Ding updated PIG-3609: -- Attachment: PIG-3609.patch Attaching a patch. > ClassCastException when calling compareTo method on AvroBagWrapper > --- > > Key: PIG-3609 > URL: https://issues.apache.org/jira/browse/PIG-3609 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.12.0 >Reporter: Richard Ding >Priority: Minor > Attachments: PIG-3609.patch > > > One got the following exception when calling compareTo method on > AvroBagWrapper with an AvroBagWrapper object: > {code} > java.lang.ClassCastException: org.apache.pig.impl.util.avro.AvroBagWrapper > incompatible with java.util.Collection > at org.apache.avro.generic.GenericData.compare(GenericData.java:786) > at org.apache.avro.generic.GenericData.compare(GenericData.java:760) > at > org.apache.pig.impl.util.avro.AvroBagWrapper.compareTo(AvroBagWrapper.java:78) > {code} > Looking at the code, it compares objects with different types: > {code} > return GenericData.get().compare(theArray, o, theArray.getSchema()); > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)
[jira] [Updated] (PIG-3609) ClassCastException when calling compareTo method on AvroBagWrapper
[ https://issues.apache.org/jira/browse/PIG-3609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Richard Ding updated PIG-3609: -- Status: Patch Available (was: Open) > ClassCastException when calling compareTo method on AvroBagWrapper > --- > > Key: PIG-3609 > URL: https://issues.apache.org/jira/browse/PIG-3609 > Project: Pig > Issue Type: Bug > Components: impl >Affects Versions: 0.12.0 >Reporter: Richard Ding >Assignee: Richard Ding >Priority: Minor > Attachments: PIG-3609.patch > > > One got the following exception when calling compareTo method on > AvroBagWrapper with an AvroBagWrapper object: > {code} > java.lang.ClassCastException: org.apache.pig.impl.util.avro.AvroBagWrapper > incompatible with java.util.Collection > at org.apache.avro.generic.GenericData.compare(GenericData.java:786) > at org.apache.avro.generic.GenericData.compare(GenericData.java:760) > at > org.apache.pig.impl.util.avro.AvroBagWrapper.compareTo(AvroBagWrapper.java:78) > {code} > Looking at the code, it compares objects with different types: > {code} > return GenericData.get().compare(theArray, o, theArray.getSchema()); > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)