Ho Balaji. Druid can aggregate data both at time of ingestion and at query time. It has a many supported aggregate functions including very fast approximations for distinct counts and quantiles. You can find more details at https://druid.apache.org/docs/latest/querying/sql-aggregations.html