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

Mark Wagner commented on HIVE-4732:
-----------------------------------

The write and readFields methods are used when serializing the writable, but 
not when persisting to disk. We'll still want to maintain that id if the record 
is serialized and deserialized so we can do the equality comparison on the 
other side. I don't believe that those methods are ever actually used in Hive 
(the ORC equivalent of AvroGenericRecordWritable doesn't even implement it), 
but for completeness they are included.
                
> Reduce or eliminate the expensive Schema equals() check for AvroSerde
> ---------------------------------------------------------------------
>
>                 Key: HIVE-4732
>                 URL: https://issues.apache.org/jira/browse/HIVE-4732
>             Project: Hive
>          Issue Type: Improvement
>          Components: Serializers/Deserializers
>            Reporter: Mark Wagner
>            Assignee: Mohammad Kamrul Islam
>         Attachments: HIVE-4732.1.patch, HIVE-4732.v1.patch
>
>
> The AvroSerde spends a significant amount of time checking schema equality. 
> Changing to compare hashcodes (which can be computed once then reused) will 
> improve performance.

--
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

Reply via email to