You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Chinmay Kulkarni (Jira)" <ji...@apache.org> on 2020/08/21 21:59:00 UTC

[jira] [Commented] (PHOENIX-6093) adding hashcode to phoenix pherf Column class

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

Chinmay Kulkarni commented on PHOENIX-6093:
-------------------------------------------

[~yanxinyi] There's a bunch of other fields in Column.java. Why are we only focusing on name and type? Similarly, shouldn't the equals method also check equality of all the fields? 

Another related issue with equals() is: Currently, equals() says "Equal if column name and type match" but it only checks type.

> adding hashcode to phoenix pherf Column class
> ---------------------------------------------
>
>                 Key: PHOENIX-6093
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6093
>             Project: Phoenix
>          Issue Type: Improvement
>            Reporter: Xinyi Yan
>            Assignee: Xinyi Yan
>            Priority: Minor
>         Attachments: PHOENIX-6093.patch
>
>
> The pherf Column class overrides equals but not hashcode. Adding hashcode so that we can fully support serial upsert in numerical data types. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)