mirror of
https://github.com/apache/superset.git
synced 2026-09-05 15:01:44 +00:00
The `cockroachdb` PyPI package (last released 2021) is abandoned, and its SQLAlchemy dialect references sqlalchemy.dialects.postgresql.psycopg2's PGCompiler_psycopg2, which SQLAlchemy 2.0 removed. Constructing a cockroachdb:// engine has raised ImportError since the SQLAlchemy 2.0 bump (#42803) landed, with nothing catching it: the driver isn't part of the default dev/CI install, and the existing test_crdb.py only exercises convert_dttm(), never a real engine. Switches the `cockroachdb` extra to sqlalchemy-cockroachdb, the actively maintained replacement already linked from CockroachDbEngineSpec's own docs_url, adds it to the default dev install so this keeps getting exercised, and adds a regression test that constructs a real engine (verified to fail against the old package, pass against the new one).