-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix refresh schema when source_catalog_id is not present on database #20869
Conversation
On PTO so I can't really take a hard look, but:
|
(Also added @alovew who IIRC has some familiarity/expertise with this bit of the codebase? If not feel free to disregard.) |
I am still investigating why |
I'm also on PTO today so I'll tag in @davinchia in case this is urgent |
I also ran into this issue and it affected postgres and stitch connections that were setup using the cli but not a postgres connection setup using the UI. |
Sorry for the bug everyone. Most of the team is out and we aren't seeing this internally so I'm going to make sure we come back to this and solve this for everyone the day after Christmas. Thanks all! |
Spent a bit of time thinking about this issue. This case can indeed come up if the connection is created without doing schema discovery first - I could indeed imagine that some use cases that use the APIs directly could run into issues. I'm fine to go ahead with this - if you don't mind @marcelopio I'll add some unit tests here. Longer-term I think there are some structural changes we can make to the APIs around schema management that will be a big improvement. |
Sorry I could not add those before. My baby was born! I have no problem at all with you adding them. Thanks! |
In my case, I get this error if I try to refresh schema for the existing connections (that were created in the previous version). When I create a new connection in 0.40.26 I don't get the error when refreshing schema. |
For ease I opened and merged a separate PR #20928 (with a slightly different solution) - this should be addressed in the next release. |
@mfsiega-airbyte Can I close this then? |
Just upgraded and the previous issue was resolved! Appreciate the work! |
What
The PR #20323 introduced a bug where the
source_catalog_id
is empty on database you cannot use the refresh schema.Since it is expected that the
source_catalog_id
can be empty, this should not happenHow
Added a guard to check if the object obtained with
source_catalog_id
is present.Recommended reading order
x.java
y.python
🚨 User Impact 🚨
Are there any breaking changes? What is the end result perceived by the user? If yes, please merge this PR with the 🚨🚨 emoji so changelog authors can further highlight this if needed.
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/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.