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 pg] Fix issue #6857 #53649

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

[source pg] Fix issue #6857 #53649

wants to merge 1 commit into from

Conversation

burakku
Copy link
Contributor

@burakku burakku commented Feb 12, 2025

What

We have issue in #6857 about the data conversion error

Currently in our data type converter for debezium, we check if the value is null, if it is and column is non-nullable, we return the default value directly without conversion. Otherwise, return null as is.

Two issues here:

we should convert the default value as well then return it
it appears that we found null value in non-nullable column

How

This PR check if the column is nullable, if so, return null as is
if not, we feed the default value to conversion logic and return the result.

Review guide

User Impact

Can this PR be safely reverted and rolled back?

  • YES 💚
  • NO ❌

Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
airbyte-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 10:06pm

@burakku burakku changed the title [source pg] Debug pg ts [source pg] Fix issue #6857 Feb 13, 2025
@burakku burakku marked this pull request as ready for review February 13, 2025 20:39
@burakku burakku requested a review from a team as a code owner February 13, 2025 20:39
@burakku
Copy link
Contributor Author

burakku commented Feb 13, 2025

/bump-version type=patch changelog="Fix issue that column default value did not get converted"

Bump Version job started... Check job output.

✅ Changes applied successfully. (640ffed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues area/documentation Improvements or additions to documentation connectors/source/mysql connectors/source/postgres
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants