Zoltán Borók-Nagy created IMPALA-14552:
------------------------------------------
Summary: test_show_create_table should be more strict with
TBLPROPERTIES contents
Key: IMPALA-14552
URL: https://issues.apache.org/jira/browse/IMPALA-14552
Project: IMPALA
Issue Type: Improvement
Components: Test
Reporter: Zoltán Borók-Nagy
Assignee: Zoltán Borók-Nagy
Currently we use this regex to parse the contents of TBLPROPERTIES:
{noformat}
kv_regex = "'([^\']+)'\\s*=\\s*'([^\']+)'"
kv_results = dict(re.findall(kv_regex, map_match.group(1))){noformat}
This allows strings like:
{noformat}
'X'='Y'='Z'
'X'='Z'$'A'='B'{noformat}
This means it's easy to write strings in .test files that are not valid SQL.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)