[
https://issues.apache.org/jira/browse/ATLAS-5147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aditya Gupta updated ATLAS-5147:
--------------------------------
Description:
Example: When performing a search of entities i particular typedef let's say:
"hdfs_path", if the number of entities exceeds the default pagination limit
(25), the {{approximateCount}} field in the {{AtlasSearchResult}} incorrectly
reports only 25, even when more entities exist.
Also, if we decrease the pagination limit to any random number lets say 5, the
approximate count will be shown as 5
*Before the Fix:*
Create 26 entities of a type.
Perform a search using the API without explicitly setting {{limit}} and
{{offset}} (defaults to 25).
Observe that {{approximateCount}} is reported as *25* instead of *26*
*After the Fix*
approximateCount value is reported as totalEntityCount present in particular
typedefinition
*Fix Done:*
Capture the total Enitity count before you apply the limit/offset
was:
Example: When performing a search of entities i particular typedef let's say:
"hdfs_path", if the number of entities exceeds the default pagination limit
(25), the {{approximateCount}} field in the {{AtlasSearchResult}} incorrectly
reports only 25, even when more entities exist.
Also, if we decrease the pagination limit to any random number lets say 5, the
approximate count will be shown as 5
*Before the Fix:*
Create 26 entities of a type.
Perform a search using the API without explicitly setting {{limit}} and
{{offset}} (defaults to 25).
Observe that {{approximateCount}} is reported as *25* instead of *26*
*After the Fix*
approximateCount value is reported as totalEntityCount present in particular
typedefinition
Fix Done:
Capture the total Enitity count before you apply the limit/offset
> Search API "approximateCount" shows "pageLimit" value instead of total entity
> count
> -----------------------------------------------------------------------------------
>
> Key: ATLAS-5147
> URL: https://issues.apache.org/jira/browse/ATLAS-5147
> Project: Atlas
> Issue Type: Bug
> Reporter: Aditya Gupta
> Assignee: Aditya Gupta
> Priority: Major
>
> Example: When performing a search of entities i particular typedef let's say:
> "hdfs_path", if the number of entities exceeds the default pagination limit
> (25), the {{approximateCount}} field in the {{AtlasSearchResult}} incorrectly
> reports only 25, even when more entities exist.
> Also, if we decrease the pagination limit to any random number lets say 5,
> the approximate count will be shown as 5
> *Before the Fix:*
> Create 26 entities of a type.
> Perform a search using the API without explicitly setting {{limit}} and
> {{offset}} (defaults to 25).
> Observe that {{approximateCount}} is reported as *25* instead of *26*
> *After the Fix*
> approximateCount value is reported as totalEntityCount present in particular
> typedefinition
> *Fix Done:*
> Capture the total Enitity count before you apply the limit/offset
--
This message was sent by Atlassian Jira
(v8.20.10#820010)