Skip to content

Fix APPROX_QUANTILE on outer groupBys. - #5253

Merged
fjy merged 1 commit into
apache:masterfrom
gianm:sql-fix-aq
Jan 12, 2018
Merged

Fix APPROX_QUANTILE on outer groupBys.#5253
fjy merged 1 commit into
apache:masterfrom
gianm:sql-fix-aq

Conversation

@gianm

@gianm gianm commented Jan 12, 2018

Copy link
Copy Markdown
Contributor

Calcite evaluates a possible plan where the literal probability is pushed down to the inner query, transforming it into not-a-literal. This caused an assertion error in RexLiteral.value(probabilityArg). This patch returns null here, skipping that possible plan and moving on to the next one where the literal is not pushed down (and the query works fine).

@gianm gianm added this to the 0.12.0 milestone Jan 12, 2018
@fjy
fjy merged commit a11049c into apache:master Jan 12, 2018
gianm added a commit to gianm/druid that referenced this pull request Jan 12, 2018
gianm added a commit to implydata/druid-public that referenced this pull request Jan 17, 2018
@gianm
gianm deleted the sql-fix-aq branch September 23, 2022 19:27
riovic918data pushed a commit to riovic918data/druid that referenced this pull request Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants