Eugeniu created HIVE-20272:
------------------------------
Summary: Parsing error on fields with dashes inside nested
structures
Key: HIVE-20272
URL: https://issues.apache.org/jira/browse/HIVE-20272
Project: Hive
Issue Type: Bug
Affects Versions: 2.3.3
Reporter: Eugeniu
Following table declaration throws an error
{code}
CREATE EXTERNAL TABLE t (
parent STRUCT<
`child-field`: STRUCT<
field1: BOOLEAN,
field2: TIMESTAMP
>
>
)
ROW FORMAT
SERDE 'org.openx.data.jsonserde.JsonSerDe'
STORED AS TEXTFILE
LOCATION 's3://bucket/path/';
{code}
Exception:
{code}
ERROR : FAILED: Execution Error, return code 1 from
org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.IllegalArgumentException:
Error: : expected at the position 12 of
'struct<child-field:struct<field1:boolean,field2:timestamp>>' but '-' is found.
{code}
Expected behavior: table is created without raising exceptions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)