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

[FLINK-34883] Fix postgres uuid column as PK #3282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eskabetxe
Copy link
Member

@eskabetxe eskabetxe commented Apr 29, 2024

A majority of Postgres databases use UUIDs as primary keys.

When we enable 'scan.incremental.snapshot.enabled = true', Flink-CDC will try to split into chunks.
The splitTableIntoChunks function relies on the queryMinMax function, which fails when trying to calculate the MIN(UUID) and MAX(UUID), as that is not supported in Postgres.

This change those queries to cast the uuid to a String value.

@eskabetxe
Copy link
Member Author

@GOODBOY008 can you help here to find someone that can help review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant