[
https://issues.apache.org/jira/browse/HIVE-13748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16163879#comment-16163879
]
Dan Osipov commented on HIVE-13748:
-----------------------------------
Looks like it should be possible to support by adding {{"-"}} to the list on
this line:
https://github.com/prongs/apache-hive/blob/master/serde/src/java/org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils.java#L280
Any side effects of doing that?
cc [~prasanth_j]
> TypeInfoParser cannot handle the dash in the field name of a complex type
> -------------------------------------------------------------------------
>
> Key: HIVE-13748
> URL: https://issues.apache.org/jira/browse/HIVE-13748
> Project: Hive
> Issue Type: Bug
> Reporter: Chaoyu Tang
> Assignee: Chaoyu Tang
> Priority: Minor
>
> hive> create table y(col struct<`a-b`:double> COMMENT 'type field has a
> dash');
> FAILED: Execution Error, return code 1 from
> org.apache.hadoop.hive.ql.exec.DDLTask. java.lang.IllegalArgumentException:
> Error: : expected at the position 8 of 'struct<a-b:double>' but '-' is found.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)