[
https://issues.apache.org/jira/browse/ASTERIXDB-2516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16798272#comment-16798272
]
ASF subversion and git services commented on ASTERIXDB-2516:
------------------------------------------------------------
Commit aad7835c866ebabf03c46dabf8946a4da65fe8cc in asterixdb's branch
refs/heads/master from Ali Alsuliman
[ https://gitbox.apache.org/repos/asf?p=asterixdb.git;h=aad7835 ]
[ASTERIXDB-2516][COMP] Avoid writing field names & values when comparing records
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
ARecordVisitablePointable writes field names, field tags, and field values
first before giving access to the record information. This is not ideal for
comparison. A different record accessor is needed for comparison. Also, the
field names should be sorted which ARecordVisitablePointable does not provide.
- avoid this writing when a pointable to the name & value can be obtained
(especially when the field value already includes the tag)
- use UTF8Pointable cached values (string length, meta length) to compare
instead of using the string comparator which would recalculate these values
- refactored some common code.
- removed not used methods in ARecordPointable
Change-Id: I19ac95a91749b2983bf06f763e463521a97a261c
Reviewed-on: https://asterix-gerrit.ics.uci.edu/3280
Integration-Tests: Jenkins <[email protected]>
Tested-by: Jenkins <[email protected]>
Contrib: Jenkins <[email protected]>
Reviewed-by: Murtadha Hubail <[email protected]>
> Add support for deep comparison
> -------------------------------
>
> Key: ASTERIXDB-2516
> URL: https://issues.apache.org/jira/browse/ASTERIXDB-2516
> Project: Apache AsterixDB
> Issue Type: Improvement
> Components: RT - Runtime
> Reporter: Ali Alsuliman
> Assignee: Ali Alsuliman
> Priority: Major
>
> Add support for deep comparison.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)