rill
rill copied to clipboard
Runtime: Support configurable approx/exact behavior for Druid
Druid allows this on per query basis using context keys. Go's sql package does not have any concept of adding context keys per statement. Additionally calcite's avatica server's prepare and execute apis does not accept any context level keys.
For the customers needing more precision, one way is to set this as druid cluster level config so approx is not used. druid.sql.planner.useApproximateCountDistinct=false
Once we move to rest api - https://github.com/rilldata/rill-private-issues/issues/136 then we can use per-query context to set this. Adding to backlog for now