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

HiveResultSetMetaData.getPrecision() fails for NULL columns

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • JDBC
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: