[ 
https://issues.apache.org/jira/browse/HIVE-21504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mounica Annaparthi updated HIVE-21504:
--------------------------------------
    Description: 
Hi,

We are trying to use TypeInfoUtils to validate the data type information of a 
string.
{code:java}
TypeInfoUtils.getTypeInfoFromTypeString(inputString).getCategory();
{code}
map<array<int>,string> comes back as data type MAP . I was expecting this to 
give back error as map key should only be a primitive type.

Could you please check and let us know if this is already known issue or this 
is something that has to be fixed.

Thanks!

Mona

  was:
Hi,

We are trying to use TypeInfoUtils to validate the data type information of a 
string.

map<array<int>,string> comes back as data type MAP . I was expecting this to 
give back error as map key should only be a primitive type.

Could you please check and let us know if this is already known issue or this 
is something that has to be fixed.

Thanks!

Mona


> map data type in hive allows complex data type as map key
> ---------------------------------------------------------
>
>                 Key: HIVE-21504
>                 URL: https://issues.apache.org/jira/browse/HIVE-21504
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2
>            Reporter: Mounica Annaparthi
>            Priority: Major
>
> Hi,
> We are trying to use TypeInfoUtils to validate the data type information of a 
> string.
> {code:java}
> TypeInfoUtils.getTypeInfoFromTypeString(inputString).getCategory();
> {code}
> map<array<int>,string> comes back as data type MAP . I was expecting this to 
> give back error as map key should only be a primitive type.
> Could you please check and let us know if this is already known issue or this 
> is something that has to be fixed.
> Thanks!
> Mona



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to