Skip to content

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

Merged
fjy merged 3 commits intoapache:masterfrom
gianm:sql-lookup
Mar 2, 2017
Merged

SQL: Make row extractions extensible and add one for lookups.#3989
fjy merged 3 commits intoapache:masterfrom
gianm:sql-lookup

Conversation

@gianm
Copy link
Copy Markdown
Contributor

@gianm gianm commented Mar 1, 2017

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.

@gianm gianm added the Feature label Mar 1, 2017
@gianm gianm added this to the 0.10.1 milestone Mar 1, 2017
@gianm gianm requested review from fjy and jon-wei March 1, 2017 20:25
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Mar 1, 2017

👍

@fjy fjy merged commit 23927a3 into apache:master Mar 2, 2017
@fjy
Copy link
Copy Markdown
Contributor

fjy commented Mar 2, 2017

@gianm can you reverse this? i had too many tabs open and merged teh wrong PR :P

@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Mar 2, 2017

Sure, I'll revert the commit and re-open the PR

gianm added a commit that referenced this pull request Mar 2, 2017
…#3989)"

The PR was merged to master accidentally.

This reverts commit 23927a3.
gianm added a commit to gianm/druid that referenced this pull request Mar 2, 2017
This is a reopening of apache#3989, since that PR was merged to master prematurely
and accidentally.
@gianm
Copy link
Copy Markdown
Contributor Author

gianm commented Mar 2, 2017

Reverted in e63eefd and reopened in #3991

jon-wei pushed a commit that referenced this pull request Mar 14, 2017
This is a reopening of #3989, since that PR was merged to master prematurely
and accidentally.
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.

2 participants