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

Phil/rm pattern descriptor #242

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

psFried
Copy link
Member

@psFried psFried commented Jul 21, 2023

We saw a number of problems with source-postgres-heroku (Airbyte's source-postgres).

First was an issue with the endpoint spec schema, which caused our encryption endpoint to fail when creating captures via the UI. This was solved by removing unknown keywords from the spec schema.

Second is that the connector failed to ingest data from a table that had an integer primary key. The Discover RPC returns a schema with type: number for that field, which Flow doesn't allow for primary keys. Changing the type to integer in the collection schema allows the build to work, but causes an exception in the connector. The second commit here changes the replication method to always use "Xmin", which we thought might allow us to use type: integer, but it seems to still cause an exception when you use type: integer in the collection schema. This is tracked upstream in airbytehq#28529

So it seems like this connector may just not work until the error with integer fields is fixed upstream. In the meantime, we can either merge this (it's already broken 🤷) or keep it around as a draft / reminder to follow up.

The Standard replication does not work for tables with integer primary keys,
because the connector maps integer columns to `type: number` in the json
schemas, and changing the type in the schema causes an exception in the
connector.
@psFried psFried force-pushed the phil/rm-pattern-descriptor branch from 5d07e49 to 8b57fae Compare July 21, 2023 19:48
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.

1 participant