[ 
https://issues.apache.org/jira/browse/HCATALOG-505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13799540#comment-13799540
 ] 

Viraj Bhat commented on HCATALOG-505:
-------------------------------------

With HIVE-5290 this has been fixed in the TestHCatLoaderComplex. I ran this 
against JDK 1.7.0.45 and this works.
Viraj 

> testSyntheticComplexSchema and testMapWithComplexData fail in JDK 1.7 64 bit
> ----------------------------------------------------------------------------
>
>                 Key: HCATALOG-505
>                 URL: https://issues.apache.org/jira/browse/HCATALOG-505
>             Project: HCatalog
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.4, 0.5
>         Environment: Java 1.7 64 bit and RHEL 6
>            Reporter: Viraj Bhat
>            Priority: Minor
>
> Tests fail when doing the following:
> {code}
> private void verifyWriteRead 
> {
>    while (it.hasNext()) {
>    Tuple input = data.get(i++);
>    Tuple output = it.next();
>    Assert.assertEquals(input.toString(), output.toString());
>    LOG.info("tuple : {} ",output);
> }
> {code}
> and is reported in the following way:
> {quote}
> Testcase: testSyntheticComplexSchema took 17.693 sec
>         FAILED
> expected:<...1#test 1,ac test2#test 2...> but was:<...2#test 2,ac test1#test 
> 1...>
> junit.framework.ComparisonFailure: expected:<...1#test 1,ac test2#test 2...> 
> but was:<...2#test 2,ac test1#test 1...>
>         at 
> org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.verifyWriteRead(TestHCatLoaderComplexSchema.java:203)
>         at 
> org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.testSyntheticComplexSchema(TestHCatLoaderComplexSchema.java:171)
> Testcase: testTupleInBagInTupleInBag took 50.637 sec
> Testcase: testMapWithComplexData took 12.558 sec
>         FAILED
> expected:<...2#(2,test 2),b test 1#(1,test 1...> but was:<...1#(1,test 1),b 
> test 2#(2,test 2...>
> junit.framework.ComparisonFailure: expected:<...2#(2,test 2),b test 1#(1,test 
> 1...> but was:<...1#(1,test 1),b test 2#(2,test 2...>
>         at 
> org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.verifyWriteRead(TestHCatLoaderComplexSchema.java:203)
>         at 
> org.apache.hcatalog.pig.TestHCatLoaderComplexSchema.testMapWithComplexData(TestHCatLoaderComplexSchema.java:284)
> {quote}
> We may need to change the way we are comparing complex tuples!!



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to