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

Query fails when non-ascii characters are used in string literals

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      While debugging HIVE-11721 I found that using non-ascii characters in string literals causes calcite planner to throw the following exception:

      2015-10-17T23:07:20,586 ERROR [main]: parse.CalcitePlanner (CalcitePlanner.java:genOPTree(292)) - CBO failed, skipping CBO.
      org.apache.calcite.runtime.CalciteException: Failed to encode 'Абвгде' in character set 'ISO-8859-1'
      

      The query is:

      select concat("Абвгде", "谢谢") from src limit 1;
      

      Other queries with non-ascii literals fail as well.

        Attachments

        1. HIVE-12207.patch
          5 kB
          Aleksei Statkevich
        2. HIVE-12207-branch-1.patch
          5 kB
          Aleksei Statkevich

          Activity

            People

            • Assignee:
              Aleksei Aleksei Statkevich
              Reporter:
              Aleksei Aleksei Statkevich
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: