The total hits result is incorrect. Quesma returns 10087 while elasticsearch: 4675.
Quesma executes the following SQL query:
SELECT
sum(count(*)) OVER () AS "metric____quesma_total_count_col_0",
sum(count(*)) OVER () AS "aggr__0__parent_count",
arrayJoin("products_product_name") AS "aggr__0__key_0",
count(*) AS "aggr__0__count"
FROM default.kibana_sample_data_ecommerce
GROUP BY arrayJoin("products_product_name") AS "aggr__0__key_0"
ORDER BY "aggr__0__count" DESC, "aggr__0__key_0" ASC
LIMIT 6
Aggregation is computed OK, but computing the total count should compensate for the arrayJoin rows explosion.
When we call Quesma
The total hits result is incorrect. Quesma returns 10087 while elasticsearch: 4675.
Quesma executes the following SQL query:
Aggregation is computed OK, but computing the total count should compensate for the
arrayJoin
rows explosion.