You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
File "/home/walther/.cache/pypoetry/virtualenvs/features-collector-NOfOGNwm-py3.10/lib/python3.10/site-packages/clickhouse_sqlalchemy/alembic/comparators.py", line 118, in compare_mat_view
_reflect_table(inspector, table, None)
TypeError: _reflect_table() takes 2 positional arguments but 3 were given
The problem is placed in line 118 of file (clickhouse_sqlalchemy/alembic/comparators.py), thats true that is _reflect_table function takes only 2 arguments, but 3 given.
Source file path: alembic/util/sqla_compat.py
So in file where _reflect_table()(clickhouse_sqlalchemy/alembic/comparators.py) function is using I'm just removed third argument and it's started working, i've got migration what I expected.
To Reproduce
Sorry, that I'm not giving a code to reproduce the problem, but as I think - I gave enough code and description of problem.
Expected behavior
I was expected that migration will be created with a generated code which contains commands to create table by defined model.
Versions
alembic == 1.12.0
clickhouse-sqlalchemy == 0.2.4
clickhouse-driver == 0.2.6
Python 3.10.9
The text was updated successfully, but these errors were encountered:
Describe the bug
So, I have created a model for my table in Clickhouse:
The
BaseModel
for my table models is defined like:With the models above i'm trying to run alembic with following command:
The result:
What I'm expected after going to source code :
The problem is placed in line 118 of file (clickhouse_sqlalchemy/alembic/comparators.py), thats true that is
_reflect_table
function takes only 2 arguments, but 3 given.Source file path: alembic/util/sqla_compat.py
So in file where
_reflect_table()
(clickhouse_sqlalchemy/alembic/comparators.py) function is using I'm just removed third argument and it's started working, i've got migration what I expected.To Reproduce
Sorry, that I'm not giving a code to reproduce the problem, but as I think - I gave enough code and description of problem.
Expected behavior
I was expected that migration will be created with a generated code which contains commands to create table by defined model.
Versions
The text was updated successfully, but these errors were encountered: