Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-2321

V1 DSL search fails with error when the query doesn't return any results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0
    • 1.0.0
    • atlas-core
    • None

    Description

      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'.

      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)
      

      Attachments

        1. ATLAS-2321.patch
          2 kB
          Madhan Neethiraj

        Activity

          People

            madhan Madhan Neethiraj
            sharmadhas Sharmadha S
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: