-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
superset db upgrade mishandles DATABASE_URL with % in it #23176
Labels
#bug
Bug report
Comments
1 task
rusackas
added a commit
that referenced
this issue
Apr 6, 2023
Co-authored-by: Evan Rusackas <[email protected]>
FYI, this happens when you have to |
Looks like the PR resolving this was merged, but the issue was never closed. Closing now. Thanks! |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Superset passes DATABASE_URL to Alembic by setting it as a value in a ConfigParser instance.
ConfigParser values are interpolated: https://docs.python.org/3/library/configparser.html#interpolation-of-values
This results in error message (or wrong behavior) if the DATABASE_URL contains %.
DATABASE_URL containing % is needed for some Postgres features, for example setting the schema where Superset metadata is stored:
postgres://postgres:s3kr1t@localhost:5432/postgres?application_name=superset&options=--search_path%3D%22%24user%22,superset
How to reproduce the bug
superset db upgrade
Expected results
Superset medata tables created inside Postgres schema named
superset
.Actual results
Environment
0.0.0-dev
(docker image 3c95779d0029 from 2023-02-21)Python 3.8.16
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
How to fix it:
The text was updated successfully, but these errors were encountered: