-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 Posgres: [CDC] allow null values for columns #13016
Conversation
/test connector=connectors/source-postgres
|
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. we can proceed with publishing and merging without airbyte review
f4bd469
to
17e3bf1
Compare
17e3bf1
to
2e90b77
Compare
/publish connector=connectors/source-postgres
|
If I understand the changes correctly, this will make all Date, Text, and Money fields nullable (optional). I don't think that's the correct change though, because it will also allow non-nullable columns to be NULLs. Could we use |
/test connector=connectors/source-postgres
Build PassedTest summary info:
|
@grishick |
OK. Thank you for explaining that. For posterity, please add a comment in the code explaining why it is important to keep all fields NULL-able for CDC. |
/publish connector=connectors/source-postgres run-tests=false
|
I reran the build and tests locally to make sure they pass. |
@grishick thank you for helping with this issue |
* [cdc] source postgres: add optional to schema fields * bump version * auto-bump connector version Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
What
Fixes #8557
How
Added 'null' values to shema building.
Before schema for column looked like
{ "type": "string" }
Now:
{ "type": [ "string", null ] }
Recommended reading order
x.java
y.python
🚨 User Impact 🚨
There is no user impact
Pre-merge Checklist
Expand the relevant checklist and delete the others.
New Connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/SUMMARY.md
docs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampledocs/integrations/README.md
airbyte-integrations/builds.md
Airbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereUpdating a connector
Community member or Airbyter
airbyte_secret
./gradlew :airbyte-integrations:connectors:<name>:integrationTest
.README.md
bootstrap.md
. See description and examplesdocs/integrations/<source or destination>/<name>.md
including changelog. See changelog exampleAirbyter
If this is a community PR, the Airbyte engineer reviewing this PR is responsible for the below items.
/test connector=connectors/<name>
command is passing/publish
command described hereConnector Generator
-scaffold
in their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplates
then checking in your changesTests
Unit
Put your unit tests output here.
Integration
Put your integration tests output here.
Acceptance
Put your acceptance tests output here.