blob: 495682df72431a6a46b4a091b3bae89ba08590bb [file] [log] [blame]
====
---- QUERY
# Reproduces IMPALA-6734. Before fixing this would pass if the results had a single
# quote for each value instead of the correct string.
select "a comma,"
from alltypestiny
---- RESULTS
'a comma,'
'a comma,'
'a comma,'
'a comma,'
'a comma,'
'a comma,'
'a comma,'
'a comma,'
---- TYPES
STRING
====
---- QUERY
# Test that escaping single quotes in result string works.
select "'"
---- RESULTS
''''
---- TYPES
STRING
====
---- QUERY
select "你好"
---- RESULTS
'\u4f60\u597d'
---- TYPES
STRING
====
---- QUERY
select "你好"
---- RESULTS: RAW_STRING
'你好'
---- TYPES
STRING
====
---- QUERY
select "你好\n你好"
---- RESULTS
'\u4f60\u597d\n\u4f60\u597d'
---- TYPES
STRING
====
---- QUERY
select "你好\n你好"
---- RESULTS: RAW_STRING,MULTI_LINE
['你好
你好']
---- TYPES
STRING
====
---- QUERY
select "你好\\n你好"
---- RESULTS
'\u4f60\u597d\\n\u4f60\u597d'
---- TYPES
STRING
====
---- QUERY
select "你好\\n你好"
---- RESULTS: RAW_STRING
'你好\n你好'
---- TYPES
STRING
====
---- QUERY
select "你好", "Halló", "여보세요"
---- RESULTS
'\u4f60\u597d','Hall\xf3','\uc5ec\ubcf4\uc138\uc694'
---- TYPES
STRING,STRING,STRING
====
---- QUERY
select "你好", "Halló", "여보세요"
---- RESULTS: RAW_STRING
'你好','Halló','여보세요'
---- TYPES
STRING,STRING,STRING
====
---- QUERY
values ("你好"), ("Halló"), ("여보세요")
---- RESULTS: RAW_STRING,VERIFY_IS_SUBSET
'你好'
'여보세요'
---- TYPES
STRING
====
---- QUERY
values ("你好"), ("Halló"), ("여보세요")
---- RESULTS: RAW_STRING,VERIFY_IS_SUPERSET
'你好'
'여보세요'
'Halló'
'hello'
---- TYPES
STRING
====
---- QUERY
values ("你好"), ("Halló"), ("여보세요")
---- RESULTS: RAW_STRING,VERIFY_IS_NOT_IN
'hello'
---- TYPES
STRING
====