[
https://issues.apache.org/jira/browse/HIVE-3017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291326#comment-13291326
]
Travis Crawford commented on HIVE-3017:
---------------------------------------
I just checked the contents of
[hive-exec-0.8.0.jar|http://search.maven.org/remotecontent?filepath=org/apache/hive/hive-exec/0.8.0/hive-exec-0.8.0.jar]
which is the earliest version available in Maven. HIVE-2646 has fix version
0.9.1.
Looking in the 0.8.0 jar we do see the serde2 classes listed above. So it seems
they've been bundled into hive-exec for some time.
While providing the same classes in two jars is janky, I don't think this
behavior has changed in a while. With that in mind, think we should close this?
At least you can depend on {{hive-serde2}} directly if you want (unlike ql
which are only in the exec jar).
> HIVE-2646 added Serde classes to hive-exec jar, duplicating hive-serde
> ----------------------------------------------------------------------
>
> Key: HIVE-3017
> URL: https://issues.apache.org/jira/browse/HIVE-3017
> Project: Hive
> Issue Type: Bug
> Reporter: Jakob Homan
>
> HIVE-2646 added the jars from hive-serde to the hive-exec class:
> {noformat}
> ...
> 0 Wed May 09 20:56:30 PDT 2012 org/apache/hadoop/hive/serde2/typeinfo/
> 1971 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/ListTypeInfo.class
> 2396 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/MapTypeInfo.class
> 2788 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/PrimitiveTypeInfo.class
> 4408 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/StructTypeInfo.class
> 900 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfo.class
> 6576 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfoFactory.class
> 1231 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils$1.class
> 1239 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils$TypeInfoParser$Token.class
> 7145 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils$TypeInfoParser.class
> 14482 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/TypeInfoUtils.class
> 2594 Wed May 09 20:56:28 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/UnionTypeInfo.class
> 144 Wed May 09 20:56:30 PDT 2012
> org/apache/hadoop/hive/serde2/typeinfo/package-info.class
> ...{noformat}
> Was this intentional? If so, the serde jar should be deprecated. If not, the
> serde classes should be removed since this creates two sources of truth for
> them and can cause other problems (see HCATALOG-407).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira