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

show create for view having special char in where clause is not showing properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 2.2.0
    • None
    • None

    Description

      e.g.,
      CREATE VIEW `v2` AS select `evil_byte1`.`a` from `default`.`EVIL_BYTE1` where `evil_byte1`.`a` = 'abcÖdefÖgh';
      Output:
      ======
      0: jdbc:hive2://172.26.122.227:10000> show create table v2;
      ----------------------------------------------------------------------------------------------------------------+

      createtab_stmt

      ----------------------------------------------------------------------------------------------------------------+

      CREATE VIEW `v2` AS select `evil_byte1`.`a` from `default`.`EVIL_BYTE1` where `evil_byte1`.`a` = 'abc�def�gh'

      ----------------------------------------------------------------------------------------------------------------+

      Only show create output is having invalid characters, actual source table content is displayed properly in the console.

      Attachments

        1. HIVE-18112.2-branch-2.2.patch
          4 kB
          Naresh P R
        2. HIVE-18112.1-branch-2.2.patch
          3 kB
          Naresh P R
        3. HIVE-18112-branch-2.2.patch
          3 kB
          Naresh P R

        Activity

          People

            nareshpr Naresh P R
            nareshpr Naresh P R
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: