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

source-postgres: Discover OIDs as integers and add tests #1966

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

willdonnelly
Copy link
Member

@willdonnelly willdonnelly commented Sep 19, 2024

Description:

Previously OID values "worked" (they've always been captured as integer values and it was possible to use them as the backfill key as far as the connector was concerned), but were discovered as the catch-all schema {} which meant that OID primary keys would produce a collection with an invalid collection key.

This commit fixes that by changing OID discovery to say they're integers, and adds some test cases to make sure OIDs work as we intend both as values and as primary keys.


This change is Reviewable

Previously OID values "worked" (they've always been captured as
integer values and it was possible to use them as the backfill
key as far as the connector was concerned), but were discovered
as the catch-all schema `{}` which meant that OID primary keys
would produce a collection with an invalid collection key.

This commit fixes that by changing OID discovery to say they're
integers, and adds some test cases to make sure OIDs work as we
intend both as values and as primary keys.
@willdonnelly willdonnelly requested a review from a team September 19, 2024 16:12
@willdonnelly willdonnelly added the change:unplanned Unplanned change, useful for things like doc updates label Sep 19, 2024
Copy link
Member

@williamhbaker williamhbaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@willdonnelly willdonnelly merged commit 5985e03 into main Sep 19, 2024
50 of 53 checks passed
@willdonnelly willdonnelly deleted the wgd/postgres-oid-20240919 branch September 19, 2024 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change:unplanned Unplanned change, useful for things like doc updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants