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

Quick Search: Incorrect aggregation Metric when less than operator is selected to filter

    XMLWordPrintableJSON

Details

    Description

      The aggregation metrics for POST /api/atlas/v2/search/quick API returned the count of all entities (of a selected type) in case the createTime  < '' filter is applied which results in no entities for the given search range.

       

      Example

      {"assetProvider":"ATLAS","excludeDeletedEntities":true,"includeSubClassifications":true,"includeSubTypes":true,"tagFilters":null,"attributes":["qualifiedName","createTime","db","parameters"],"query":"","typeName":"hive_table","entityFilters":{"condition":"AND","criterion":[{"condition":"AND","criterion":[

      {"attributeName":"createTime","operator":"lt","attributeValue":"1613973469738"}

      ]}]},"classification":null,"childClassification":null,"limit":100,"offset":0}

      Response

      "approximateCount": 0
      },
      "aggregationMetrics":{
      "__typeName":[

      {"name":"hive_table","count":66}

      ],
      "__state":[

      {"name":"active","count":66}

      ],
      "ServiceType":[

      {"name":"hive","count":66}

      ],
      "Asset.owner":[

      {"name":"hive","count":66}

      ]}

      Attachments

        Issue Links

          Activity

            People

              pinal Pinal Shah
              pinal Pinal Shah
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: