-
Notifications
You must be signed in to change notification settings - Fork 73
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
Percent in string literal incorrectly double encoded #297
Comments
Thanks for the analysis and including a workaround! I think you're the first person to open an issue about SQLAlchemy that's not related to Superset. I'd honestly recommend against trying to use |
Streamlit uses sqlachemy for its caching so don't think switching is an easy option unfortunately. |
Thanks for the context -- I don't see sqlalchemy as a requirement for the latest streamlit install, do you happen to know if it's still required or what else I'm missing? That would help us decide the priority in fixing this. |
From https://docs.streamlit.io/library/advanced-features/connecting-to-data
|
Thanks for the response! We'll take a look at Streamlit usage when determining the priorities for SQLAlchemy improvements and bug fixes! |
Describe the bug
Percent in string literal incorrectly double encoded with sqlachemy interface.
Steps to reproduce
e.g.
SELECT formatDateTime(toDate('2010-01-04'), '%g')
Result:
Expected behaviour
Configuration
On a slightly older version, don't see the necessary fix on master.
Analysis
Various places in code has:
class ChIdentifierPreparer(IdentifierPreparer)
doesn't override the assignment in its base class:
Workaround
I monkey patched:
The text was updated successfully, but these errors were encountered: