You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Sharmadha Sainath (JIRA)" <ji...@apache.org> on 2017/08/04 11:50:00 UTC

[jira] [Updated] (ATLAS-2022) Regression : Empty results fetched from GET Basic search query

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

Sharmadha Sainath updated ATLAS-2022:
-------------------------------------
    Attachment: ATLAS-2022.patch

Commit https://github.com/apache/atlas/commit/9b72de98072f4b4adcc3179399342fd63494043b
introduced using atlasDiscoveryService.searchWithParameters() instead of atlasDiscoveryService.searchUsingBasicQuery() . The latter had the limit and offset check whereas the former one didn't have it. Adding the check in the patch.

CC : [~apoorvnaik] [~madhan.neethiraj] [~ayubkhan]

> Regression : Empty results fetched from GET Basic search query
> --------------------------------------------------------------
>
>                 Key: ATLAS-2022
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2022
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating
>            Reporter: Sharmadha Sainath
>            Priority: Blocker
>         Attachments: ATLAS-2022.patch
>
>
> Basic search query fired as a POST request with attribute , tag filters fetches correct results.
> But Basic query fired as a GET request with query params encoded in the URL , returns empty results.
> For example : Basic query : typeName = "hive_table" query = <name of existing hive_table in Atlas"
> http://localhost:21000/api/atlas/v2/search/basic?typeName=hive_table&query=employee
> returns 
> {code}
> {
> queryType: "BASIC",
> searchParameters: {
> query: "employee",
> typeName: "hive_table",
> excludeDeletedEntities: false,
> limit: 0,
> offset: 0
> },
> queryText: "employee"
> }
> {code}
> Few commits back , following was the response :
> {code}
> {
> queryType: "BASIC",
> type: "hive_table",
> entities: [
> {
> typeName: "hive_table",
> attributes: {
> owner: "admin",
> qualifiedName: "default.employee@cl1",
> name: "employee",
> description: null
> },
> guid: "253aa208-0415-4e86-8611-3858fad78ede",
> status: "ACTIVE",
> displayText: "employee",
> classificationNames: [ ]
> }
> ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)