Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.9.0
-
None
-
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
- is related to
-
SPARK-19912 String literals are not escaped while performing Hive metastore level partition pruning
- Resolved
-
HIVE-11723 Incorrect string literal escaping
- Closed