how to get all distinct dimensions?

how to get all distinct dimensions?

Hi, are you asking about all distinct VALUES in a dimension or all distinct dimensions?

You can use HTTP endpoints on the broker to get all dimensions for a datasource:

http://druid.io/docs/latest/design/broker.html