[jira] [Commented] (HAWQ-992) PXF Hive data type check in Fragmenter too restrictive

2016-08-10 Thread Shivram Mani (JIRA)

[ 
https://issues.apache.org/jira/browse/HAWQ-992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15416122#comment-15416122
 ] 

Shivram Mani commented on HAWQ-992:
---

HAWQ/PXF doesn't send the varchar/char with length/precision information to the 
PXF webapp HAWQ-997.
This results in the above error during data deserialization while reading the 
data (Resolver).

> PXF Hive data type check in Fragmenter too restrictive
> --
>
> Key: HAWQ-992
> URL: https://issues.apache.org/jira/browse/HAWQ-992
> Project: Apache HAWQ
>  Issue Type: Bug
>  Components: PXF
>Reporter: Shivram Mani
>Assignee: Shivram Mani
> Fix For: backlog
>
>
> HiveDataFragmenter used by both HiveText and HiveRC profiles has a very 
> strict type check. 
> Hawq type numeric(10,10) is compatible with hive's decimal(10,10)
> But Hawq type numeric is not compatible with hive's decimal(10,10)
> Similar issue exits with other data types which have variable optional 
> arguments. The type check should be modified to allow hawq type that is a 
> compabitle type but without optional precision/length arguments to work with 
> the corresponding hive type.
> Support following additional hive data types: date, varchar, char



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (HAWQ-992) PXF Hive data type check in Fragmenter too restrictive

2016-08-10 Thread Shivram Mani (JIRA)

[ 
https://issues.apache.org/jira/browse/HAWQ-992?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15415589#comment-15415589
 ] 

Shivram Mani commented on HAWQ-992:
---

Even though the fragmenter can permitm hawq types such as varchar char without 
length, the Hive type checker TypeInfoUtils doesn't permit using types without 
length. 
For example using varchar in hawq tagble resutls in the following exception 
"java.lang.Exception: java.lang.IllegalArgumentException: varchar type is 
specified without length"

> PXF Hive data type check in Fragmenter too restrictive
> --
>
> Key: HAWQ-992
> URL: https://issues.apache.org/jira/browse/HAWQ-992
> Project: Apache HAWQ
>  Issue Type: Bug
>  Components: PXF
>Reporter: Shivram Mani
>Assignee: Shivram Mani
> Fix For: backlog
>
>
> HiveDataFragmenter used by both HiveText and HiveRC profiles has a very 
> strict type check. 
> Hawq type numeric(10,10) is compatible with hive's decimal(10,10)
> But Hawq type numeric is not compatible with hive's decimal(10,10)
> Similar issue exits with other data types which have variable optional 
> arguments. The type check should be modified to allow hawq type that is a 
> compabitle type but without optional precision/length arguments to work with 
> the corresponding hive type.
> Support following additional hive data types: date, varchar, char



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)