You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2016/09/01 01:52:20 UTC

[jira] [Updated] (HIVE-14542) VirtualColumn::equals() should use object equality

     [ https://issues.apache.org/jira/browse/HIVE-14542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eugene Koifman updated HIVE-14542:
----------------------------------
    Status: Patch Available  (was: Open)

> VirtualColumn::equals() should use object equality
> --------------------------------------------------
>
>                 Key: HIVE-14542
>                 URL: https://issues.apache.org/jira/browse/HIVE-14542
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Gopal V
>            Assignee: Eugene Koifman
>            Priority: Minor
>         Attachments: HIVE-14542.patch, virtual-columns.png
>
>
> The VirtualColumn() constructor is private and is only called to initialize 5 static objects.
> !virtual-columns.png!
> There's no reason for VirtualColumn::equals() to do a deep type inspection for each access of a complex type like ROW__ID.
> {code}
>   else if(vc.equals(VirtualColumn.ROWID)) {
>         if(ctx.getIoCxt().getRecordIdentifier() == null) {
>           vcValues[i] = null;
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)