[jira] [Created] (HIVE-5592) Add an option to convert enum as struct as of Hive 0.8

2013-10-18 Thread Jie Li (JIRA)
Jie Li created HIVE-5592:


 Summary: Add an option to convert enum as struct as of 
Hive 0.8
 Key: HIVE-5592
 URL: https://issues.apache.org/jira/browse/HIVE-5592
 Project: Hive
  Issue Type: Bug
Affects Versions: 0.11.0, 0.10.0, 0.12.0
Reporter: Jie Li


HIVE-3222 introduced the incompatible change: Hive handling of enum types has 
been changed to always return the string value rather than struct. 
But it didn't add the option "hive.data.convert.enum.to.string"  as planned and 
thus broke all Enum usage prior to 0.10.




--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HIVE-3323) enum to string conversions

2013-10-17 Thread Jie Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-3323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798710#comment-13798710
 ] 

Jie Li commented on HIVE-3323:
--

>From the discussion I can see the proposal of 
>"hive.data.convert.enum.to.string" but it was not in the final patch.

> enum to string conversions
> --
>
> Key: HIVE-3323
> URL: https://issues.apache.org/jira/browse/HIVE-3323
> Project: Hive
>  Issue Type: Improvement
>Affects Versions: 0.10.0
>Reporter: Travis Crawford
>Assignee: Travis Crawford
> Fix For: 0.10.0
>
> Attachments: HIVE-3323_enum_to_string.1.patch, 
> HIVE-3323_enum_to_string.2.patch, HIVE-3323_enum_to_string.3.patch, 
> HIVE-3323_enum_to_string.4.patch, HIVE-3323_enum_to_string.5.patch, 
> HIVE-3323_enum_to_string.6.patch, HIVE-3323_enum_to_string.8.patch
>
>
> When using serde-reported schemas with the ThriftDeserializer, Enum fields 
> are presented as {{struct}}
> Many users expect to work with the string values, which is both easier and 
> more meaningful as the string value communicates what is represented.
> Hive should provide a mechanism to optionally convert enum values to strings.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HIVE-3323) enum to string conversions

2013-10-17 Thread Jie Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-3323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798708#comment-13798708
 ] 

Jie Li commented on HIVE-3323:
--

Hi, we used to use the struct representation in Hive 0.8 and got hit 
by this incompatible change after upgrading. Any reason not providing a 
configuration for this change? I guess it might break some other users.

> enum to string conversions
> --
>
> Key: HIVE-3323
> URL: https://issues.apache.org/jira/browse/HIVE-3323
> Project: Hive
>  Issue Type: Improvement
>Affects Versions: 0.10.0
>Reporter: Travis Crawford
>Assignee: Travis Crawford
> Fix For: 0.10.0
>
> Attachments: HIVE-3323_enum_to_string.1.patch, 
> HIVE-3323_enum_to_string.2.patch, HIVE-3323_enum_to_string.3.patch, 
> HIVE-3323_enum_to_string.4.patch, HIVE-3323_enum_to_string.5.patch, 
> HIVE-3323_enum_to_string.6.patch, HIVE-3323_enum_to_string.8.patch
>
>
> When using serde-reported schemas with the ThriftDeserializer, Enum fields 
> are presented as {{struct}}
> Many users expect to work with the string values, which is both easier and 
> more meaningful as the string value communicates what is represented.
> Hive should provide a mechanism to optionally convert enum values to strings.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Commented] (HIVE-2227) Remove ProgressCounter enum in Operator

2013-02-05 Thread Jie Li (JIRA)

[ 
https://issues.apache.org/jira/browse/HIVE-2227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572244#comment-13572244
 ] 

Jie Li commented on HIVE-2227:
--

Even though this ticket has not been committed, the current counterNameToEnum 
is not initialized and remains null. This prevents the operator counters 
(NUM_INPUT_ROWS NUM_OUTPUT_ROWS TIME_TAKEN) to be recorded. Any thoughts on 
what was broken?

> Remove ProgressCounter enum in Operator
> ---
>
> Key: HIVE-2227
> URL: https://issues.apache.org/jira/browse/HIVE-2227
> Project: Hive
>  Issue Type: Improvement
>  Components: Query Processor
>Affects Versions: 0.8.0
>Reporter: Zhuoluo (Clark) Yang
>Priority: Minor
> Attachments: HIVE-2227-1.patch
>
>
> After HIVE-1701, it is of no use to keep a heavy counterNameToEnum hashmap. 
> We can use string directly, for the enum is only a hack for hadoop 0.17. The 
> string will be human readable in the jobdetails.jsp instead of C1, C2, ... 
> C1000.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira