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
Attachments
Issue Links
- blocks
-
HIVE-3015 org.apache.hadoop.hive.jdbc.HiveResultSetMetaData.getColumnClassName Method not supported
- Resolved