Hive
  1. Hive
  2. HIVE-3812

TestCase TestJdbcDriver fails with IBM Java 6

    Details

    • Type: Bug Bug
    • Status: Patch Available
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.8.0, 0.8.1, 0.9.0, 0.10.0
    • Fix Version/s: None
    • Component/s: JDBC, Tests
    • Labels:
      None
    • Environment:

      Apache Ant 1.7.1
      IBM JDK 6

      Description

      When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

      <failure message="expected:[[{}, 1], [

      {[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:[[{}, 1], [{[c=d, a=b]}

      , 2]] but was:[[{}, 1], [

      {[a=b, c=d]}

      , 2]];
      at junit.framework.Assert.assertEquals(Assert.java:85)
      at junit.framework.Assert.assertEquals(Assert.java:91)
      at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)

      1. HIVE-3812.1_0.8.1.patch.txt
        0.9 kB
        Renata Ghisloti Duarte de Souza
      2. HIVE-3812.1_trunk.patch.txt
        1.0 kB
        Renata Ghisloti Duarte de Souza

        Activity

        Renata Ghisloti Duarte de Souza created issue -
        Renata Ghisloti Duarte de Souza made changes -
        Field Original Value New Value
        Description When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:&lt;[[{}, 1], [{[c=d, a=b]}, 2]]&gt; but was:&lt;[[{}, 1], [{[a=b, c=d]}, 2]]&gt;" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:&lt;[[{}, 1], [{[c=d, a=b]}, 2]]&gt; but was:&lt;[[{}, 1], [{[a=b, c=d]}, 2]]&gt;
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:&lt;[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        Renata Ghisloti Duarte de Souza made changes -
        Description When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:&lt;[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        Hide
        Renata Ghisloti Duarte de Souza added a comment -

        Patch to fix the bug for Hive trunk.

        Show
        Renata Ghisloti Duarte de Souza added a comment - Patch to fix the bug for Hive trunk.
        Renata Ghisloti Duarte de Souza made changes -
        Attachment HIVE-3812.1_trunk.patch.txt [ 12561285 ]
        Renata Ghisloti Duarte de Souza made changes -
        Description When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure:
        expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        Renata Ghisloti Duarte de Souza made changes -
        Description When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure:
        expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        When running testcase TestJdbcDriver with IBM Java 6, it fails with the following error:

            <failure message="expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];" type="junit.framework.ComparisonFailure">junit.framework.ComparisonFailure: expected:[[{}, 1], [{[c=d, a=b]}, 2]] but was:[[{}, 1], [{[a=b, c=d]}, 2]];
        at junit.framework.Assert.assertEquals(Assert.java:85)
        at junit.framework.Assert.assertEquals(Assert.java:91)
        at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testDataTypes(TestJdbcDriver.java:380)
        Hide
        Renata Ghisloti Duarte de Souza added a comment -

        Patch to fix the bug for Hive 0.8.1.

        Show
        Renata Ghisloti Duarte de Souza added a comment - Patch to fix the bug for Hive 0.8.1.
        Renata Ghisloti Duarte de Souza made changes -
        Attachment HIVE-3812.1_0.8.1.patch.txt [ 12561287 ]
        Ashutosh Chauhan made changes -
        Fix Version/s 0.8.1 [ 12319268 ]
        Fix Version/s 0.10.0 [ 12320745 ]
        Renata Ghisloti Duarte de Souza made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 0.10.0 [ 12320745 ]
        Fix Version/s 0.8.1 [ 12319268 ]
        Ashutosh Chauhan made changes -
        Fix Version/s 0.10.0 [ 12320745 ]
        Ashutosh Chauhan made changes -
        Fix Version/s 0.8.1 [ 12319268 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Renata Ghisloti Duarte de Souza
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development