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

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

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

amotl
Copy link
Member

@amotl amotl commented Jan 16, 2024

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

  • Software tests.
  • Changelog item.
  • Check if documentation needs to be updated.

@amotl amotl force-pushed the amo/fix-get_pk_constraint branch 2 times, most recently from 4f59c62 to 2064d6b Compare January 16, 2024 02:06
pyproject.toml Outdated Show resolved Hide resolved
@amotl amotl force-pushed the amo/fix-get_pk_constraint branch from 6314807 to a649ad9 Compare June 22, 2024 21:11
@amotl amotl requested review from seut, matriv and surister June 22, 2024 21:12
@amotl amotl marked this pull request as ready for review June 22, 2024 21:13
@amotl amotl force-pushed the amo/fix-get_pk_constraint branch from a649ad9 to a636957 Compare June 24, 2024 14:11
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
@amotl amotl force-pushed the amo/fix-get_pk_constraint branch from a636957 to 37d1521 Compare June 24, 2024 14:11
@amotl amotl merged commit c703e0a into main Jun 24, 2024
24 checks passed
@amotl amotl deleted the amo/fix-get_pk_constraint branch June 24, 2024 14:13
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

Successfully merging this pull request may close these issues.

2 participants