Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-1797

Schema parser should not ignore null character in default value for bytes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 1.7.4
    • None
    • c
    • None
    • Hive, Impala

    Description

      In https://avro.apache.org/docs/1.7.7/spec.html#schema_complex, "Default values for bytes and fixed fields are JSON strings, where Unicode code points 0-255 are mapped to unsigned 8-bit byte values 0-255.". The example provided is: bytes || string || "\u00FF".

      However, if I try to create a table schema with default bytes value for a decimal field to be i.e. "\u0031", I will have "Illegal unquoted character ((CTRL-CHAR, code 31)): has to be escaped using backslash to be included in string value.". Anything less than 32 fails.

      Attachments

        Activity

          People

            Unassigned Unassigned
            HuaisiXu Huaisi Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: