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

SQLAlchemy 2.0 not supported when task history enabled #3227

Open
fran-penedo opened this issue Feb 17, 2023 · 2 comments
Open

SQLAlchemy 2.0 not supported when task history enabled #3227

fran-penedo opened this issue Feb 17, 2023 · 2 comments

Comments

@fran-penedo
Copy link

As far as I can tell, the issue is in the _upgrade_schema function. In 2.0, string queries must be enclosed in a text object and for some reason the rows returned in conn.execute(sqlalchemy.text('PRAGMA table_info(task_parameters);')).fetchall() have no keys. I do not know if there are other changes in 2.0 that will break functionality.

@plazmakeks
Copy link

can be avoided by pinning sqlalchemy to

sqlalchemy==1.4.46

but you probably found it out by your own. however it's crazy that this is not addressed by the maintaining team. it's takes like 1 minute to fix it.

@saikrishna130
Copy link

If I want to use "oracledb" which is available in sqlalchemy==2.0.7, _upgrade_schema wont allow the sql execution in plain text format. Instead, it requires to be as conn.execute(sqlalchemy.text('ALTER TABLE task_parameters MODIFY value TEXT'))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants