Will elasticsearch SQL support for cardinality aggregation (DISTINCT) in future?

Hi all,

Will elasticsearch SQL support for cardinality aggregation (DISTINCT) in future?

We're open to all feature requests, it'd be great if you could raise it on https://github.com/elastic/elasticsearch/issues/new :slight_smile:

Hi @ranranxiaoya,
What exact functionality are you looking for regarding DISTINCT?

I'm asking because, at the moment, something like this SELECT COUNT(DISTINCT(first_name.keyword)) FROM test_emp; is already possible and it's using cardinality aggregation behind the scene.

This is exactly what I need. Thank you very much.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.