You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2022/06/01 13:42:39 UTC
[GitHub] [hive] pvary commented on a diff in pull request #3337: HIVE-26282: Improve iceberg CTAS error message for unsupported types
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`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org