3 Commits

Author SHA1 Message Date
Gian Merlino
e86859b228 SQL support for nested groupBys. (#3806)
* SQL support for nested groupBys.

Allows, for example, doing exact count distinct by writing:

  SELECT COUNT(*) FROM (SELECT DISTINCT col FROM druid.foo)

Contrast with approximate count distinct, which is:

  SELECT COUNT(DISTINCT col) FROM druid.foo

* Add deeply-nested groupBy docs, tests, and maxQueryCount config.

* Extract magic constants into statics.

* Rework rules to put preconditions in the "matches" method.
2017-01-11 18:32:53 -08:00
Gian Merlino
dd63f54325 Built-in SQL. (#3682) 2016-12-16 17:15:59 -08:00
fjy
42ac41d55e add more docs based on proposed wishlist 2015-07-02 17:46:08 -07:00