Madhan Neethiraj created ATLAS-2321:
---------------------------------------

             Summary: V1 DSL search fails with JsonMappingException 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: Madhan Neethiraj
            Assignee: Madhan Neethiraj


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