You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2018/01/04 23:43:00 UTC
[jira] [Commented] (ATLAS-2321) V1 DSL search fails with error when
the query doesn't return any results
[ https://issues.apache.org/jira/browse/ATLAS-2321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16312211#comment-16312211 ]
Madhan Neethiraj commented on ATLAS-2321:
-----------------------------------------
Committed to master: http://git-wip-us.apache.org/repos/asf/atlas/commit/3f330194
> 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
> Fix For: 1.0.0
>
> 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)