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

[bugfix] Datasource -> Slice relationship #3011

Merged
merged 2 commits into from
Jun 23, 2017

Conversation

fabianmenges
Copy link
Contributor

The existing slices relationship does not filter correctly on the datasource_type.

Currently, if you delete a druid datasource, it will set datasource_id on all slices to NULL where the druid datasource id matches that datasource_id, even if the slice was referencing a sql table id.

@fabianmenges fabianmenges changed the title Bug fix: Datasource -> Slice relationship [bugfix] Datasource -> Slice relationship Jun 20, 2017
'Slice',
primaryjoin=(
"DruidDatasource.id == foreign(Slice.datasource_id) and "
"Slice.datasource_type == 'druid'"))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear, this filter on 'druid' currently does not do anything.

@mistercrunch mistercrunch merged commit 8dfe2b7 into apache:master Jun 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants