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

Search using entity and trait attributes - OR condition considers only the first criterion in the list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 0.8.2, 1.0.0
    • atlas-core
    • None

    Description

      1.Created 2 hive_table entities by name : table1 and table2.
      2. Fired basic search query with following POST body :

      {  
         "entityFilters":{  
            "condition":"OR",
            "criterion":[ 
               {  
                  "attributeName":"name",
                  "operator":"=",
                  "attributeValue":"table1"
               },
               {  
                  "attributeName":"name",
                  "operator":"=",
                  "attributeValue":"table2"
               }
            ]
         },
         "tagFilters":null,
         "attributes":[  
         ],
         "query":null,
         "limit":25,
         "offset":0,
         "typeName":"hive_table",
         "classification":null,
         "excludeDeletedEntities": false
      }
      

      2. Expected the response would return both table1 and table2.
      3. Only table1 (first filter) is returned. Any filter other than "!=" in the second condition doesn't fetch expected results.
      4. Also when "excludeDeletedEntities" is set to true , though table1 and table2 are ACTIVE , no entity is returned.

      Attachments

        Activity

          People

            apoorvnaik Apoorv Naik
            sharmadhas Sharmadha S
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: