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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              pinal.shah Pinal
              Reporter:
              pinal.shah Pinal

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment