-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Refactor Snowflake internal Staging as a base class for other staging classes #10865
Conversation
…es in jdbc destinations
/test 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.
added a couple comments but I think I mostly understand
...n-jdbc/src/main/java/io/airbyte/integrations/destination/staging/StagingConsumerFactory.java
Outdated
Show resolved
Hide resolved
...destination-s3/src/main/java/io/airbyte/integrations/destination/s3/S3DestinationConfig.java
Outdated
Show resolved
Hide resolved
...destination-s3/src/main/java/io/airbyte/integrations/destination/s3/S3DestinationConfig.java
Outdated
Show resolved
Hide resolved
...destination-s3/src/main/java/io/airbyte/integrations/destination/s3/S3DestinationConfig.java
Show resolved
Hide resolved
@@ -45,4 +47,8 @@ | |||
@Deprecated | |||
String getTmpTableName(String name); | |||
|
|||
String getStageName(String schemaName, String tableName); | |||
|
|||
String getStagingPath(String connectionId, String schemaName, String tableName, DateTime writeDatetime); |
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.
These methods do not look necessary for all destination. Should they be put in this interface?
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.
Correct! thank you, I'll move them to stagingOperations
...ses/base-java/src/main/java/io/airbyte/integrations/destination/StandardNameTransformer.java
Outdated
Show resolved
Hide resolved
Chris Duong seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
651c7f7
to
aa5eba1
Compare
Codecov Report
@@ Coverage Diff @@
## master #10865 +/- ##
=========================================
Coverage ? 78.06%
=========================================
Files ? 12
Lines ? 1304
Branches ? 0
=========================================
Hits ? 1018
Misses ? 286
Partials ? 0 Continue to review full report at Codecov.
|
/test 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.
one last comment, feel free to merge if I'm misunderstanding how the class works
...n-jdbc/src/main/java/io/airbyte/integrations/destination/staging/StagingConsumerFactory.java
Outdated
Show resolved
Hide resolved
… classes (#10865) * Refactor Snowflake internal Staging as model to share staging abilities in jdbc destinations
What
In preparation for other PRs, this one is isolating some changes to make other PRs easier to follow.
Such as: #10866
How
Refactor the Snowflake Internal Staging destination to re-use it as a base for other staging options.
Recommended reading order
x.java
y.python
🚨 User Impact 🚨
Nothing is changing. We don't even need to re-publish a snowflake connector.