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

Aditya Gupta commented on ATLAS-5163:
-------------------------------------

Related JIRA: https://issues.apache.org/jira/browse/ATLAS-5147
Related PR: https://github.com/apache/atlas/pull/463

> Relationship Search API approximateCount returns pageLimit value instead of 
> total relationship count
> ----------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-5163
>                 URL: https://issues.apache.org/jira/browse/ATLAS-5163
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Aditya Gupta
>            Assignee: Aditya Gupta
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The approxCount value in Relationship Search is returned based on the 
> requested limit value instead of actual total number of relationships found.
> Consider Total Relationship = 30(hive_table_db)
> |*Limit Set (L)*|*Approx Count Returned*|*Expected Count*|*Reason (Bug)*|
> |*0*|30|30|The logic defaulted to the total count when no limit was set.|
> |*1*|*1*|30|The count was incorrectly capped by the small limit.|
> |*29*|*29*|30|The count was incorrectly capped by the limit.|
> |*31*|*30*|30|Since the limit (31) was greater than the total (30), the total 
> was returned.|



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

Reply via email to