-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
fix(db-migration): new_dataset_models_take_2 error on postgres #21417
Conversation
Previous code is not working. It is showing an error because the subquery is making a reference to the same table sl_columns. This code makes explicit the alias and join the tables NewColumn with the subquery.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️
We hope to see you in our Slack community too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! Would you mind posting before & after generated SQL statements if it's not too much hassle?
Codecov Report
@@ Coverage Diff @@
## master #21417 +/- ##
===========================================
- Coverage 66.57% 55.72% -10.85%
===========================================
Files 1791 1835 +44
Lines 68593 69970 +1377
Branches 7319 7590 +271
===========================================
- Hits 45665 38990 -6675
- Misses 21031 29014 +7983
- Partials 1897 1966 +69
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hey @micsbot thanks for this submission! Can you address the issue with https://github.com/apache/superset/actions/runs/3023984202/jobs/4897820803 If you're new to pre-commit, I wrote about that here: https://preset.io/blog/tutorial-contributing-code-to-apache-superset/#crafting-a-git-commit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - tested to work as expected. Thanks for fixing this!
Previous code is not working. It is showing an error because the subquery is making a reference to the same table sl_columns. This code makes explicit the alias and join the tables NewColumn with the subquery. #20790
fix(superset db upgrade)
SUMMARY
Previous code is not working. It is showing an error because the subquery is making a reference to the same table sl_columns. This code makes explicit the alias and join the tables NewColumn with the subquery.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
run docker, and exec superset update db using a database with data from superset 1.x.x
ADDITIONAL INFORMATION