running migrations on clickhouse #1422
Replies: 2 comments 8 replies
-
hi - have you gotten support for the clickhouse dialect first? this error is likely to be part of that dialect's implementation |
Beta Was this translation helpful? Give feedback.
-
this looks like you are doing various custom things and I dont actually understand what the code is supposed to do. it looks like the errors are generated by something called
that's not any kind of public API at all, then also there are no migration files supplied here.
if you send invalid structures into SQLAlchemy it will raise errors, that's not a bug. the issue here is that there is some kind of non-sqlalchemy construct called "KeysExpressionOrColumn" coming up and it expects some column named "ts" to exist, which it doesnt. I would assume this is related to |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I'm trying to config revisions pipepline for my clickhouse database with alembic 1.7.6 and clickhouse_sqlalchemy 0.3.0.
It's implemented with class structure in my case. When I'm creating first revision, everything seems ok, but when I'm trying to upgrade my database by adding some columns to table, alembic revision autogeneration fails with provided error, caused by sqlalchemy. I think, that my metadata wasn't updated since first revision, but I'm not sure, where especially error is
Optional link from https://docs.sqlalchemy.org which documents the behavior that is expected
No response
SQLAlchemy Version in Use
2.0.25
DBAPI (i.e. the database driver)
clickhouse
Database Vendor and Major Version
24.1.3
Python Version
3.10.12
Operating system
Ubuntu 22.04.3 LTS
To Reproduce
Beta Was this translation helpful? Give feedback.
All reactions