How to query druid to get the list of distinct dimension values

Hi,

We are using druid 0.12.1, recently we have a requirement that need to get the list of distinct values for dimensions in a given time interval. How can I get this information? The druid metadata query only provide cardinality of a dimension, but do not provide the actually distinct values.

Thanks

Hong

I figured out, we can use groupBy query without aggregation.

Thanks

Hong