-
Notifications
You must be signed in to change notification settings - Fork 70
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: create schema and table on add_sink
#1036
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1036 +/- ##
==========================================
+ Coverage 83.13% 83.39% +0.26%
==========================================
Files 39 39
Lines 3747 3758 +11
Branches 628 628
==========================================
+ Hits 3115 3134 +19
+ Misses 470 464 -6
+ Partials 162 160 -2 ☔ View full report in Codecov by Sentry. |
I see codecov is failing. Wasn't exactly sure where best to add tests, but will look again in the morning 👍 |
@kgpayne - Looks like we've all had a first pass at this, and I see you are making a couple iterations, so I'll mark as draft. Feel free to move back to ready status once you are ready for final review. 👍 |
@kgpayne I was wondering how should a developer set a target's default schema once this code is put in place? Say for argument's sake I created a target-postgres and set the default schema on connect with some code like this.
I believe with this PR in place any blank table would be created in the tap's schema not in the target's default schema from the |
@BuzzCutNorman - Thanks for raising. @kgpayne - There are probably several discussion points to unwind here, but what do you think of using a setting name of New discussion here where we can dive deep: If we can remove the reference to What do you think? |
We don't currently have any references to
I.e. the incoming I posted feedback on the discussion too, but TLDR; is that we don't currently allow the specification of a schema/search path during the construction of the SQLAlchemy engine, but could easily do so with a WDYT? |
This was my misreading then. Thanks very much for clarifying. |
@aaronsteers I had to check, as I thought we used it somewhere too 🙂 Whilst its common in SQL target implementations (as you point out in the discussion) it isn't (yet) in the SDK 👍 |
Co-authored-by: Aaron ("AJ") Steers <[email protected]>
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.
@kgpayne - Looks good from my side.
@edgarrmondragon - Any other changes you'd want to see in this iteration?
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.
@kgpayne Looks good to me!
@BuzzCutNorman re:
I think we should follow this PR up with this one: That would give a standard way for users to control the target load schemas. And presumably those behaviors would be built into the |
Closes #1027
SQLSink
#1027📚 Documentation preview 📚: https://meltano-sdk--1036.org.readthedocs.build/en/1036/