Comments (7)
was the approximate distinct count
turned off when you ran this query?
from druid.
from druid.
from druid.
can you set druid.sql.planner.useGroupingSetForExactDistinct
to true and see if that fixes the issue? This bug might be same as what's being discussed here - apache/calcite#3735 (comment)
from druid.
Though I am surprised how did this query even work in 25.0.0 without you setting druid.sql.planner.useGroupingSetForExactDistinct
. It would have failed outright.
from druid.
No luck with this setting too :(
Surprisingly as explained above even without this flag or so single aggregation at a time works
from druid.
Looking at your test case I formed query based on it which works.
SELECT
COUNT(DISTINCT "City") FILTER (WHERE ("SampleSaleData"."__time" >= '2022-01-12T00:00:00.000Z') AND ("SampleSaleData"."__time" < '2022-01-13T00:00:00.000Z')) AS "P2-DistinctCities",
COUNT(DISTINCT "City") FILTER (WHERE ("SampleSaleData"."__time" >= '2022-01-05T00:00:00.000Z') AND ("SampleSaleData"."__time" < '2022-01-06T00:00:00.000Z')) AS "P2-DistinctCities"
FROM
SampleSaleData "SampleSaleData"
But this query, very specific to druid. The solution we are building need to work with multiple DB this query is not working with MySQL as well as Snowflake, the queries are built dynamically, so a very specific druid SQL needs to be built. Until now CASE based query was worked with other traditional standard DBs used to work with druid as well.
So overall now this is failure is specifically related to CASE statements with multiple such aggregations
from druid.
Related Issues (20)
- Encountered test failed when running test from `kubernetes-overlord-extensions` module
- Explore API
- [MM-less] Clean up volume config when inherit podSpec from Overlord HOT 5
- KafkaTuningConfiguration spec is incorrectly documented & Implemented
- /v2 and /v2/candidates endpoints not respecting broker partition pruning - range partition
- supervisor endpoint not respecting frontCoded indexSpec formatVersion HOT 2
- Is druid.segmentCache.locations is used to configure the maximum storage size for hot data?
- MiddleManager errors while executing the peon task HOT 3
- Overlord cannot respond to requests when kafka is abnormal
- Ingestion lag because of multiple checkpoints. HOT 1
- Need a way to distribute ingestion task replicas across tiers
- Ingestion tasks fail because of problem with HDFS
- druid datasource delete automatically [only unused data sources]
- MSQ exporting fails to output headers with complex column types (array/json) HOT 1
- feature: stringMax, stringMin aggregations
- Auto-generate metric emitter mappings HOT 2
- druid.indexer.task.restoreTasksOnRestart does not work by default for Docker based deployments on Kubernetes HOT 1
- SQL JSON_OBJECT() function results in RUNTIME_FAILURE when querying INFORMATION_SCHEMA.COLUMNS
- Kill task using exclusive locks currently and no way to change it
- Add filter feature for DataSource section of Router page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from druid.