Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16306

Encode binary fields of complex types with base64 and wrap them up with quotes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.2.0
    • None
    • None

    Description

      Consider a complex type that has a binary field/item. For example:

      struct<field:binary>
      

      In sink operators, the struct is encoded as a JSON string, but its binary field is directly appended to the JSON string when encoded, which often breaks downstream JSON parsers.

      Can we encode binary data within a complex type into base64 strings and quote them up like normal strings? This helps JSON parsers to work properly with binary data.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Yibing Yibing Shi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: