Skip to content

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.

@psFried psFried requested review from jshearer and mdibaiee July 21, 2023 18:57
psFried added 2 commits July 21, 2023 15:46
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.

2 participants