1.1.0a2 — Alpha Preview (Bug-fix follow-up)
Quick follow-up to 1.1.0a1, rebased on 1.0.0rc3 so the rc3 insert-retry fix is included. Everything from 1.1.0a1 still applies. See that release for the full preview overview.
Installation
pip install clickhouse-connect==1.1.0a2
# To use the Alembic integration:
pip install "clickhouse-connect[alembic]==1.1.0a2"Fixed in this preview
- SQLAlchemy: ClickHouse Select modifiers preserved through the ORM compile path.
FINAL,SAMPLE,PREWHERE, andLIMIT BYwere silently dropped when aselect()was built from ORM-mapped attributes (e.g.select(Event.id)) rather than Core columns. The ORM compile path rebuilds the innerSelectviaSelect._create_raw_select, which discarded the modifier instance attributes — so the compiled SQL emitted no modifier. The compiler now falls back tocompile_state.select_statementto recover them. Closes #730. - Inserts: rebuild body on connection-reset retry (inherited from
1.0.0rc3). Fixes intermittentCode: 62. Empty query. (SYNTAX_ERROR)on inserts when a pooled keep-alive connection is reset between attempts; the retry path now rebuilds the insert body instead of replaying an already-drained generator. Affects both sync and async clients. Closes #731.
Feedback
Please keep filing issues at https://github.com/ClickHouse/clickhouse-connect/issues with the alembic or sqlalchemy label.
Full changelog
See CHANGELOG.md for the complete entry.