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

Madhan Neethiraj updated ATLAS-2321:
------------------------------------
    Attachment: ATLAS-2321.patch

Review board URL: https://reviews.apache.org/r/64795/

> V1 DSL search fails with error when the query doesn't return any results
> ------------------------------------------------------------------------
>
>                 Key: ATLAS-2321
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2321
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 1.0.0
>            Reporter: Sharmadha Sainath
>            Assignee: Madhan Neethiraj
>         Attachments: ATLAS-2321.patch
>
>
> V1 DSL query :
> {{http://atlas-host:21000/api/atlas/discovery/search/dsl?query=hive_db+where+name+%3D+%27xyz%27}}
> fails with the following error in Atlas logs when Atlas doesn't have a 
> hive_db entity with name='xyz'.
> {noformat}
> java.io.IOException: not an array
>       at 
> org.apache.atlas.utils.AtlasJson.parseToV1ArrayNode(AtlasJson.java:169)
>       at 
> org.apache.atlas.web.resources.MetadataDiscoveryResource$DSLJSONResponseBuilder.results(MetadataDiscoveryResource.java:308)
>       at 
> org.apache.atlas.web.resources.MetadataDiscoveryResource.searchUsingQueryDSL(MetadataDiscoveryResource.java:160)
> {noformat}



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

Reply via email to