difin commented on code in PR #6927:
URL: https://github.com/apache/hive/pull/6927#discussion_r4647090676
##########
iceberg/iceberg-handler/src/test/results/negative/unknown_type_struct_all_unknown.q.out:
##########
@@ -0,0 +1,8 @@
+PREHOOK: query: CREATE EXTERNAL TABLE unknown_test_struct (
+ id INT,
+ s STRUCT<u:UNKNOWN>
+) STORED BY ICEBERG tblproperties('format-version'='3')
+PREHOOK: type: CREATETABLE
+PREHOOK: Output: database:default
+PREHOOK: Output: default@unknown_test_struct
+FAILED: Execution Error, return code 40000 from
org.apache.hadoop.hive.ql.ddl.DDLTask. java.lang.IllegalArgumentException:
Column 's' of type struct<3: u: optional unknown> is not supported: a struct
must have at least one field that is not of type unknown
Review Comment:
Yes, it's the same type. The message printed Iceberg's internal type string,
where 3 is the field ID and optional means nullable. I changed the struct,
array and map error messages to print the Hive type name instead, so this one
now reads Column 's' of type `struct<u:unknown>` is not supported: ..., and the
array and map messages print `array<unknown>` and `map<string,unknown>`.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]