Hive
  1. Hive
  2. HIVE-2069

NullPointerException on getSchemas

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: JDBC
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Fix for NullPointerException on the jdbc driver on getSchemas

      Description

      Calling getSchemas will cause a nullpointerexception

        Issue Links

          Activity

          Bennie Schut created issue -
          Hide
          Bennie Schut added a comment -

          java.lang.NullPointerException
          at java.util.ArrayList.<init>(ArrayList.java:131)
          at org.apache.hadoop.hive.jdbc.HiveMetaDataResultSet.<init>(HiveMetaDataResultSet.java:32)
          at org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$3.<init>(HiveDatabaseMetaData.java:481)
          at org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData.getSchemas(HiveDatabaseMetaData.java:480)
          at org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData.getSchemas(HiveDatabaseMetaData.java:475)
          at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testMetaDataGetSchemas(TestJdbcDriver.java:488)

          Probably introduced on HIVE-1126. getCatalogs works correctly but this wasn't tested.

          Show
          Bennie Schut added a comment - java.lang.NullPointerException at java.util.ArrayList.<init>(ArrayList.java:131) at org.apache.hadoop.hive.jdbc.HiveMetaDataResultSet.<init>(HiveMetaDataResultSet.java:32) at org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData$3.<init>(HiveDatabaseMetaData.java:481) at org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData.getSchemas(HiveDatabaseMetaData.java:480) at org.apache.hadoop.hive.jdbc.HiveDatabaseMetaData.getSchemas(HiveDatabaseMetaData.java:475) at org.apache.hadoop.hive.jdbc.TestJdbcDriver.testMetaDataGetSchemas(TestJdbcDriver.java:488) Probably introduced on HIVE-1126 . getCatalogs works correctly but this wasn't tested.
          Hide
          Bennie Schut added a comment -

          This patch includes a fix and a test which can be used to reproduce the nullpointer.

          Show
          Bennie Schut added a comment - This patch includes a fix and a test which can be used to reproduce the nullpointer.
          Bennie Schut made changes -
          Field Original Value New Value
          Attachment HIVE-2069.1.patch.txt [ 12474335 ]
          Bennie Schut made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Release Note Fix for NullPointerException on the jdbc driver on getSchemas
          Hide
          Ning Zhang added a comment -

          +1. will commit if tests pass.

          Show
          Ning Zhang added a comment - +1. will commit if tests pass.
          Hide
          Ning Zhang added a comment -

          Committed. Thanks Bennie!

          Show
          Ning Zhang added a comment - Committed. Thanks Bennie!
          Ning Zhang made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Carl Steinbach made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Navis made changes -
          Link This issue is duplicated by HIVE-8030 [ HIVE-8030 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          12m 3s 1 Bennie Schut 22/Mar/11 20:44
          Patch Available Patch Available Resolved Resolved
          21h 12m 1 Ning Zhang 23/Mar/11 17:57
          Resolved Resolved Closed Closed
          268d 6h 1 Carl Steinbach 16/Dec/11 23:57

            People

            • Assignee:
              Bennie Schut
              Reporter:
              Bennie Schut
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development