The grid (core) ยท console.warn
a distinct count reached {value}, past the {...
Printed by The grid (core), prefixed [lattice], since 1.77.0.
Warnings reference › source.elasticsearch.cardinality
- Identifier
source.elasticsearch.cardinality- Raised by
- The grid (core)
- Since
- 1.77.0
What happened
distinct is computed with the engine's cardinality aggregation, a HyperLogLog++ estimate sent with the largest precision_threshold the engines accept (40,000). Below it the count is near-exact; at or past it the error grows, so a figure that large is named as an estimate rather than shown as a count.
The fix
Where an exact count matters, route that statistic to the grid with an aggregates.overrides entry of 'client' on the source, or accept the estimate.
Reference
Covered in full at the API reference.