crate / sqlalchemy-cratedb

SQLAlchemy dialect for CrateDB.
https://cratedb.com/docs/sqlalchemy-cratedb/
Apache License 2.0
3 stars 2 forks source link

Dialect: Fix `get_pk_constraint` to return `list` instead of `set` type #26

Closed amotl closed 2 months ago

amotl commented 8 months ago

Problem

The test suite of meltano-tap-cratedb, derived from the corresponding PostgreSQL adapter, will process database introspection return values by marshalling them to JSON. Because get_pk_constraint returns a set type, that will fail.

TypeError: Object of type set is not JSON serializable

References

This is coming from a monkeypatch to meltano-tap-cratedb.

Backlog