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

Bulk update fails on ClickHouse #282

Open
vkozmik opened this issue Jan 12, 2024 · 0 comments
Open

Bulk update fails on ClickHouse #282

vkozmik opened this issue Jan 12, 2024 · 0 comments

Comments

@vkozmik
Copy link

vkozmik commented Jan 12, 2024

Bulk update fails through click house driver, at is is detected as insert
clickhouse_driver/client.py", line 367, in execute
is_insert = isinstance(params, (list, tuple, types.GeneratorType))

Following SQL Alchemy query does not work
session.execute(update(Table), [data1, data2])

However single updates work:
for data in [data1, data2]:
session.execute(update(Table), [data])

clickhouse-sqlalchemy 0.3.0, sqlalchemy 2.0.25, click house-driver 0.2.6

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

1 participant