Skip to content

Fix APPROX_QUANTILE on outer groupBys.#5253

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

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

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Jan 12, 2018

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
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