You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "David Phillips (JIRA)" <ji...@apache.org> on 2015/12/29 01:15:49 UTC
[jira] [Created] (HIVE-12753) Improve performance of
LazyBinaryColumnarSerDe for Text strings
David Phillips created HIVE-12753:
-------------------------------------
Summary: Improve performance of LazyBinaryColumnarSerDe for Text strings
Key: HIVE-12753
URL: https://issues.apache.org/jira/browse/HIVE-12753
Project: Hive
Issue Type: Bug
Components: Serializers/Deserializers
Affects Versions: 1.2.1
Reporter: David Phillips
{{LazyBinaryColumnarSerDe}} needs to special case writing empty strings, but it does so by calling {{getPrimitiveJavaObject()}} rather than {{getPrimitiveWritableObject()}} on {{StringObjectInspector}}. If the object is {{Text}}, then this requires a conversion to a Java {{String}} just to get the length.
Unfortunately, the best method to call depends on the object type (or the object inspector type). One solution is to call {{getPrimitiveWritableObject()}} if the object is an instance of {{Text}} or {{BytesWritable}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)