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

ASF subversion and git services commented on NIFI-13484:
--------------------------------------------------------

Commit 057e02e69834e53037e19e2514e87f35d37f1f26 in nifi's branch 
refs/heads/main from Tamas Palfy
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=057e02e698 ]

NIFI-13484 Fix HBase_2_ClientService.getResults methods, so they properly 
return a single row when startRow and endRow/stopRow are the same.

This closes #9029.

Signed-off-by: Peter Turcsanyi <[email protected]>


> HBase_2_ClientService.getResults doesn't return single row
> ----------------------------------------------------------
>
>                 Key: NIFI-13484
>                 URL: https://issues.apache.org/jira/browse/NIFI-13484
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Tamas Palfy
>            Assignee: Tamas Palfy
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> https://issues.apache.org/jira/browse/NIFI-12142 changed the deprecated
> {code:java}
>         final Scan scan = new Scan();
>         scan.setStartRow(startRow);
>         scan.setStopRow(endRow);
> {code}
> to
> {code:java}
>         Scan scan = new Scan();
>         scan = scan.withStartRow(startRow);
>         scan = scan.withStopRow(endRow);
> {code}
> While the two are almost identical logically, they behave differently when 
> _startRow_ and _endRow_ are the same. While both _setStopRow_ and 
> _withStopRow_ are _exclusive_ by default, when _startRow_ and _endRow_ are 
> the same, this exclusivity doesn't prevent _startRow_ from appearing in the 
> result for the deprecated method variants while it does for the newer ones.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to