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

JSON SerDe not escaping special chars when writing char/varchar data

    XMLWordPrintableJSON

    Details

      Description

      When writing string data to fields designated as char/varchar fields, JsonSerDe does not escape special characters, which can invalidate the JSON.
      Looks like string columns use SerDeUtils.escapeString() when building the JSON string. Char/varchar need to do the same.

        Attachments

        1. HIVE-9567.1.patch
          4 kB
          Jason Dere
        2. HIVE-9567.2.patch
          3 kB
          Jason Dere

          Activity

            People

            • Assignee:
              jdere Jason Dere
              Reporter:
              jdere Jason Dere
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: