You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Mounica Annaparthi (JIRA)" <ji...@apache.org> on 2019/03/25 19:28:00 UTC
[jira] [Updated] (HIVE-21504) map data type in hive allows complex
data type as map key
[ 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)