Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-2161

Avro schema's generated by avro-tools can fail silently

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 2.1.1
    • Fix Version/s: Impala 2.3.0, Impala 2.2.8
    • Component/s: None
    • Labels:

      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.

        Attachments

          Activity

            People

            • Assignee:
              mgrund_impala_bb91 Martin Grund
              Reporter:
              PeterEbert Peter Ebert
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: