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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.1.1
    • Impala 2.3.0, Impala 2.2.8
    • 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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: