-
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
🐛 Add method field on spec.json connectors (snowflake and postgres) #3960
Conversation
@jrhizor added you to evaluate if this change won't break back compatibility or if you have any suggestion about that. |
/test connector=source-postgres
|
/test connector=destination-snowflake
|
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.
@marcosmarxm concerned about backwards incompatibility. Will this break configs for existing users?
yes, we can remove |
/test connector=source-postgres
|
@sherifnada can you walk me through what will be backwards incompatible? That's actually a bit of a trick question, because my hunch is that given some of the nuance of when we validate we won't have backwards incompatibility issues. Here's how I think it works (for better or for worse). If we find out what the truth is here, we can then document it (and iterate if we don't like the existing behavior. Below do not assume validation happens unless I explicitly say it. User creates / updates a connector
Sync job runs
So my hunch is that as long as the connector can run without the new field (which I think is true in this implementation), then already configured connectors will be fine. |
@marcosmarxm this makes sense to me! Thanks. |
@sherifnada and @cgardens :
So, I think we wont have backwards incompatibility, but should have a way to warn users about this. |
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.
ty for the clarification marcos, shipit
/publish connector=connectors/source-postgres
|
/publish connector=connectors/destination-snowflake
|
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.
it doesn't follow the convention we've been using so far to work around oneof
We need to be careful about this one as it is in spec.json. Meaning it becomes part of the connector iface.
@michel-tricot could you check @cgardens #3935 (comment). I think what I added is the workaround to deal with oneOf. |
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.
Talked with @cgardens.
Good with the hack for now but we need to fix it ASAP before we lose control of it.
/publish connector=connectors/source-postgres
|
/publish connector=connectors/destination-snowflake
|
What
Closes #3935 and I took the opportunity to closes #3950 too
How
Add
method
field when usingoneOf
property.Recommended reading order
snowflake/spec.json
postres/spec.json
Pre-merge Checklist
Expand the checklist which is relevant for this PR.