Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13462

HiveResultSetMetaData.getPrecision() fails for NULL columns

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.0
    • Component/s: JDBC
    • Labels:
      None

      Description

      Can happen if you have a null in the select clause, for example "select null, key, value from src"

      java.sql.SQLException: Unrecognized column type: NULL
      	at org.apache.hive.jdbc.JdbcColumn.typeStringToHiveType(JdbcColumn.java:160)
      	at org.apache.hive.jdbc.HiveResultSetMetaData.getHiveType(HiveResultSetMetaData.java:48)
      	at org.apache.hive.jdbc.HiveResultSetMetaData.getPrecision(HiveResultSetMetaData.java:86)
      

        Attachments

        1. HIVE-13462.1.patch
          5 kB
          Jason Dere

          Activity

            People

            • Assignee:
              jdere Jason Dere
              Reporter:
              jdere Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: