Skip to content

SQL: Make row extractions extensible and add one for lookups.#3991

Merged
jon-wei merged 1 commit intoapache:masterfrom
gianm:sql-lookup
Mar 14, 2017
Merged

SQL: Make row extractions extensible and add one for lookups.#3991
jon-wei merged 1 commit intoapache:masterfrom
gianm:sql-lookup

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Mar 2, 2017

This is a reopening of #3989, since that PR was merged to master prematurely
and accidentally.

Two main changes here:

  • Fold ExpressionConverter into Expressions.toRowExtraction, and make the latter take a DruidOperatorTable so the conversion of SQL expressions to Druid expressions is now extensible.

  • Add a LookupExtractionOperator which offers a Druid SQL function LOOKUP(expression, lookupName) that hooks into query time lookups.

This is a reopening of apache#3989, since that PR was merged to master prematurely
and accidentally.
@gianm gianm added the Feature label Mar 2, 2017
@gianm gianm added this to the 0.10.1 milestone Mar 2, 2017
@gianm gianm requested review from fjy and jon-wei March 2, 2017 01:08
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Mar 2, 2017

👍

@jihoonson
Copy link
Copy Markdown
Contributor

LGTM!

@jon-wei
Copy link
Copy Markdown
Contributor

jon-wei commented Mar 14, 2017

👍

@jon-wei jon-wei merged commit 3216134 into apache:master Mar 14, 2017
@gianm gianm deleted the sql-lookup branch September 23, 2022 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants