[ https://issues.apache.org/jira/browse/HIVE-26282?focusedWorklogId=776870&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-776870 ]
ASF GitHub Bot logged work on HIVE-26282: ----------------------------------------- Author: ASF GitHub Bot Created on: 01/Jun/22 13:42 Start Date: 01/Jun/22 13:42 Worklog Time Spent: 10m Work Description: pvary commented on code in PR #3337: URL: https://github.com/apache/hive/pull/3337#discussion_r886823347 ########## iceberg/iceberg-catalog/src/main/java/org/apache/iceberg/hive/HiveSchemaConverter.java: ########## @@ -83,8 +83,9 @@ Type convertType(TypeInfo typeInfo) { return Types.BooleanType.get(); case BYTE: case SHORT: - Preconditions.checkArgument(autoConvert, "Unsupported Hive type: %s, use integer instead", - ((PrimitiveTypeInfo) typeInfo).getPrimitiveCategory()); + Preconditions.checkArgument(autoConvert, "Unsupported Hive type: %s, use integer " + + "instead. To enable automatic type conversion, set 'iceberg.mr.schema.auto.conversion' to true " + + "on session level.", ((PrimitiveTypeInfo) typeInfo).getPrimitiveCategory()); Review Comment: Why `on session level`? Issue Time Tracking ------------------- Worklog Id: (was: 776870) Time Spent: 20m (was: 10m) > Improve iceberg CTAS error message for unsupported types > -------------------------------------------------------- > > Key: HIVE-26282 > URL: https://issues.apache.org/jira/browse/HIVE-26282 > Project: Hive > Issue Type: Improvement > Reporter: László Pintér > Assignee: László Pintér > Priority: Major > Labels: pull-request-available > Time Spent: 20m > Remaining Estimate: 0h > > When running a CTAS query using a hive table that has a tinyint, smallint, > varchar or char column it fails with an "Unsupported Hive type" error > message. This can be worked around if the > 'iceberg.mr.schema.auto.conversion' property is set to true on session level. > We should communicate this possibility when raising the exception. -- This message was sent by Atlassian Jira (v8.20.7#820007)