Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ability to specify SQL query in Filter #3968

Closed
kkalyan opened this issue Dec 1, 2017 · 2 comments
Closed

Feature Request: Ability to specify SQL query in Filter #3968

kkalyan opened this issue Dec 1, 2017 · 2 comments
Labels
inactive Inactive for >= 30 days

Comments

@kkalyan
Copy link
Contributor

kkalyan commented Dec 1, 2017

I'd like to specify a SELECT query (typically from a database) in the Filter selection (typically on a Druid data source).

Mock:
image

Here is the query I want to execute

select SUM(revenue) from impression_druid where line_id in 
    (select line_id from mysql_line where feature_x=1)

Execution would be 2 step process

  • run MySQL query to get a list of values
  • use these values as a filter in druid query and run it.

I've not thought through enough about corner cases (like dashboard filtering and passing time to inner query), posting here to get some feedback.

@mistercrunch
Copy link
Member

I like this idea! Though I think we probably want to support Druid SQL in general first.

I spoke with folks from the Druid core team at a meetup Tuesday and they said that we should move Superset to use SQL against Druid in the near future. As we get Druid setup at Lyft we may write the SQLAlchemy and DBAPI driver required for that.

@stale
Copy link

stale bot commented Apr 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

2 participants