Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Impala 2.1.1
-
None
Description
Using avro-tools to create an avro schema resulted in a schema similar to
{"type":"record","name":"name1","namespace":"namespace1","fields":[
{"name":"id","type":["null","int"],"doc":"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"},
{"name":"temp","type":["null","int"]},{"name":"temp1","type":["null",
{"type":"string","avro.java.string":"String"}]},{"name":"temp2","type":["null",
{"type":"string","avro.java.string":"String"}]},{"name":"temp3","type":["null",
{"type":"string","avro.java.string":"String"}]},
{"name":"temp4","type":["null","int"]},
{"name":"temp5","type":["null","int"]},{"name":"tem6","type":["null",
{"type":"string","avro.java.string":"String"}]},{"name":"temp7","type":["null",
{"type":"string","avro.java.string":"String"}]},
{"name":"value","type":["null","double"]},
{"name":"insert_dt","type":["null","long"]},{"name":"insert_by","type":["null",
{"type":"string","avro.java.string":"String"}]}]}
The part where \u0000 repeats causes a select * from table to fail instantly and silently with no error reported.
Performing a select * from table limit 1 immediately returns an error.
Ideally there would be no error at all, as it's technically valid, do not see the problem in hive.