MINOR: Fix DI most view data assets aggregation (#17288)

This commit is contained in:
Mayur Singal 2024-08-07 00:34:54 +05:30 committed by GitHub
parent cf04d443fa
commit a579431e4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,7 +19,7 @@ public abstract class MostViewedEntitiesAggregator<A, B, M, S>
for (B entityFqnBucket : getBuckets(entityFqnBuckets)) {
String tableFqn = getKeyAsString(entityFqnBucket);
S sumPageViews = getAggregations(entityFqnBucket, "pageViews");
M ownerBucket = getBucketAggregation(entityFqnBucket, "owner");
M ownerBucket = getBucketAggregation(entityFqnBucket, "owners");
M entityTypeBucket = getBucketAggregation(entityFqnBucket, "entityType");
M entityHrefBucket = getBucketAggregation(entityFqnBucket, "entityHref");
String owner = getFirstValueFromBucketOrNull(ownerBucket);