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

Escaping quote in partition value encodes both backslash and quote in the partition name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.0
    • None
    • SQL
    • None

    Description

      create table foo (a string, c int) partitioned by (b string) stored as textfile;
      alter table foo add partition (b = 'abc\'def') location '/bla';
      show partitions foo;
      OK
      b=abc%5C%27def
      

      The \ has been encoded in as %5C in addition to the single quote (%27). The parser should remove the backslash in this context, since it is here to escape the single quote.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gates Alan Gates
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: