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

TCTLSeparatedProtocol should use UTF-8 to decode the data

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.3.0
    • None
    • Reviewed
    • HIVE-263. TCTLSeparatedProtocol should use UTF-8 to encode/decode the data. (zshao)

    Description

      TCTLSeparatedProtocol now uses the default character encoding. We should use UTF8 from hadoop Text class:

      Now:

                String row = new String(buf, 0, length);
      

      We want:

                String row;
                try {
                  row = Text.decode(buf, 0, length);
                } catch (CharacterCodingException e) {
                  throw new RuntimeException(e);
                }
      

      Attachments

        1. HIVE-263.1.patch
          1 kB
          Zheng Shao
        2. HIVE-263.2.patch
          3 kB
          Zheng Shao

        Activity

          People

            zshao Zheng Shao
            zshao Zheng Shao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: