You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2016/12/14 15:16:58 UTC

[jira] [Commented] (HBASE-17318) Increment does not add new column if the increment amount is zero at first time writing

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

Ted Yu commented on HBASE-17318:
--------------------------------

Can you add a unit test to prevent regression ?

Please attach patch for master branch.

> Increment does not add new column if the increment amount is zero at first time writing
> ---------------------------------------------------------------------------------------
>
>                 Key: HBASE-17318
>                 URL: https://issues.apache.org/jira/browse/HBASE-17318
>             Project: HBase
>          Issue Type: Improvement
>    Affects Versions: 2.0.0, 0.98.23, 1.2.4
>            Reporter: Guangxu Cheng
>         Attachments: HBASE-17318-branch-1.2-v1.patch
>
>
> When the data written for the first time is 0, no new columns are added.
> Iterate the input columns and update existing values if they were found, otherwise add new column initialized to the increment amount.
> Does not add new column if the increment amount is zero at first time writting.
> It is necessary to add a new column at the first write to 0. 
> If not, the result of using the phoenix is NULL.



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