clickhouse-connect 1.4.1
This is a patch release with two bug fixes. One restores correct Alembic autogenerate output for non-ClickHouse dialects after the ClickHouse integration is imported. The other completes the return-type annotations on the async client so callers running mypy in strict mode no longer get errors.
What's Changed
Bug Fixes
- SQLAlchemy: importing the ClickHouse Alembic integration no longer changes Alembic autogenerate output for other database dialects. The ClickHouse renderers for
CreateTableOp,AddColumnOp, andDropTableOpwere registered as process-wide replacements with no dialect guard, because Alembic renderers have no per-dialect dispatch. Any non-ClickHouse autogenerate run in the same process then used the ClickHouse renderers, which dropped thenullableargument from columns whose nullability was not set explicitly and injectedcc_sqlalchemyimports. The renderers now fall back to Alembic's built-in rendering for non-ClickHouse dialects. Closes #832. - Several public
AsyncClientmethods now carry the return-type annotations their syncClientcounterparts already had.close,close_connections,query_np,query_df,query_arrow,set_client_setting, andset_access_tokenwere missing them, so downstream projects running mypy with--disallow-untyped-callsgotno-untyped-callerrors on calls likeawait client.close()once the package began shippingpy.typedin 1.4.0. The async client surface is now fully annotated. This is a type-only change with no runtime effect. Closes #831.
Installation
pip install clickhouse-connect