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

JDBC getColumnTypeName() should respond with the Hive-specifc type name for ARRAY, STRUCT and MAP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0
    • 0.13.0
    • JDBC
    • None

    Description

      Per the Javadocs for ResultSetMetaData#getColumnTypeName():

      "type name used by the database. If the column type is a user-defined type, then a fully-qualified type name is returned."

      Hive's type for array, struct and map is not String. It is array, struct or map, using a JSON string serialization. Returning the Hive type here will allow you to programmatically determine if you should parse the value in the ResultSet as JSON.

      ResultSetMetaData#getColumnType() should potentially return OTHER to indicate the column is a database-specific return type.

      This would replace the fix provided HIVE-1378.

      Attachments

        1. HIVE-4519.3.patch.txt
          21 kB
          Navis Ryu
        2. HIVE-4519.2.patch.txt
          9 kB
          Navis Ryu
        3. HIVE-4519.1.patch.txt
          6 kB
          Robert Roland

        Issue Links

          Activity

            People

              robertroland Robert Roland
              robertroland Robert Roland
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: