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

Bug: _reflect_table() takes 2 positional arguments but 3 were given #250

Closed
0del opened this issue May 25, 2023 · 1 comment · Fixed by #249
Closed

Bug: _reflect_table() takes 2 positional arguments but 3 were given #250

0del opened this issue May 25, 2023 · 1 comment · Fixed by #249

Comments

@0del
Copy link
Contributor

0del commented May 25, 2023

Describe the bug
Issue title
To Reproduce

  • step 1: setup alembic with existing database
  • step 2: run alembic revision --autogenerate

Expected behavior
No error

Versions

  • 0.2.4
  • alembic==1.11.1
  • Python version: 3.10.0

Logs

609, in _run_environment
    compare._populate_migration_script(
  File "/Users/bany/.pyenv/versions/3.10.0/envs/ep2v2.0.0/lib/python3.10/site-packages/alembic/autogenerate/compare.py", line 59, in _populate_migration_script
    _produce_net_changes(autogen_context, upgrade_ops)
  File "/Users/bany/.pyenv/versions/3.10.0/envs/ep2v2.0.0/lib/python3.10/site-packages/alembic/autogenerate/compare.py", line 93, in _produce_net_changes
    comparators.dispatch("schema", autogen_context.dialect.name)(
  File "/Users/bany/.pyenv/versions/3.10.0/envs/ep2v2.0.0/lib/python3.10/site-packages/alembic/util/langhelpers.py", line 269, in go
    fn(*arg, **kw)
  File "/Users/bany/.pyenv/versions/3.10.0/envs/ep2v2.0.0/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
make: *** [revision] Error 1
@ObsidianDestroyer
Copy link

@9bany check this out, maybe helps #262

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

Successfully merging a pull request may close this issue.

2 participants