rcongiu / Hive-JSON-Serde

Read - Write JSON SerDe for Apache Hive.
Other
732 stars 391 forks source link

Fix primitive serializations by returning actual object #160

Closed koboldunderlord closed 8 years ago

koboldunderlord commented 8 years ago

Hive handles primitive types using the base Hadoop writable rather than its own during joins, which means that in order to use the proper DoubleWritable class from Hive you have to actually return an object of the appropriate type in JsonSerDe.serializeField instead of a primitive.

koboldunderlord commented 8 years ago

Closing this out & reopening using valueOf for objects to allow Java to optimize object creation better