IMPALA-258: Make partition key string encoding Hive-compatible

This commit is contained in:
Henry Robinson
2013-04-14 22:26:37 -07:00
parent abafcf81ff
commit 7d2c47ad72
5 changed files with 72 additions and 23 deletions

View File

@@ -454,3 +454,21 @@ string, string
---- RESULTS
'value','/\%.'
====
---- QUERY
# static partition insert into string-partitioned table with non-escaped special characters
# (Hive chooses not to escape + and ' ')
INSERT INTO TABLE insert_string_partitioned PARTITION(s2="_.~ +")
SELECT "value" FROM alltypessmall LIMIT 1;
---- SETUP
DROP PARTITIONS insert_string_partitioned
---- RESULTS
s2=_.~ +/: 1
====
---- QUERY
# select with unencoded partition key
SELECT * FROM insert_string_partitioned;
---- TYPES
string, string
---- RESULTS
'value','_.~ +'
====