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

BigQuery Table Data Types Do Not Reflect Those of Postgres Source #10

Open
SIGINT opened this issue Aug 19, 2022 · 1 comment
Open

BigQuery Table Data Types Do Not Reflect Those of Postgres Source #10

SIGINT opened this issue Aug 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@SIGINT
Copy link

SIGINT commented Aug 19, 2022

I'm not sure if this is necessarily a limitation with Debezium or this specific Debezium BigQuery connector. I successfully built and deployed a Docker image running debezium-server-bigquery. I was able to replicate all of our Postgres relational data into BigQuery tables in near real-time but I noticed that a large chunk of the table's columns' data types in BigQuery don't line up with those in our Postgres schemas. I found this documentation which explains the discrepancies I'm seeing. Basically all of the columns that are TIMESTAMP in Postgres are now STRING in BigQuery tables.

Is there any support built into the connector and/or Debezium for mapping the schema data types accordingly? What approaches have other folks used in this situation? It looks like it might be possible to write a custom table schema converter.

@ismailsimsek
Copy link
Member

ismailsimsek commented Aug 20, 2022

Good point seems like debezium extracts it as string but it also has a special Semantic type. it should be possible to handle it properly.

@ismailsimsek ismailsimsek added the enhancement New feature or request label Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants