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

Incorrect string literal escaping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.1, 1.2.0, 2.0.0
    • 2.0.0
    • None
    • None

    Description

      When I execute the following queries

      CREATE TABLE t_hive (f1 STRING);
      INSERT INTO t_hive VALUES ('Cooper\'s');
      SELECT * FROM t_hive;
      

      via the Hive shell or through HiveServer2 directly (via impyla), I would expect that the result to be

      Cooper's
      

      but instead I actually get

      Cooper\'s
      

      Actually, I'm not sure how that INSERT query is not even a syntax error.

      Attachments

        1. HIVE-11723.1.patch
          3 kB
          Yongzhi Chen

        Issue Links

          Activity

            People

              ychena Yongzhi Chen
              laserson Uri Laserson
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: