Repository navigation
Destination Snowflake Execute COPY in parallel - #10212
Conversation
|
/test connector=connectors/destination-snowflake
|
Edward Gao (edgao)
left a comment
There was a problem hiding this comment.
two final comments, but otherwise this lgtm!
| import java.util.concurrent.ExecutorService; | ||
| import java.util.stream.IntStream; | ||
|
|
||
| interface SnowflakeParallelCopyStreamCopier { |
There was a problem hiding this comment.
can you add javadoc comments to the methods in this interface?
There was a problem hiding this comment.
can you add javadoc comments to the methods in this interface?
done
|
/test connector=connectors/destination-snowflake
|
|
/publish connector=connectors/destination-snowflake
|
|
/publish connector=connectors/destination-snowflake
|
What
Currently, destination-snowflake's copy modes will generate multiple files on S3 or GCS, and then for each of those files, execute a COPY command in serial. We should run those commands in parallel to be more time-efficient.
How
COPY command can accept up to 1,000 files.
Recommended reading order
SnowflakeParallelCopyStreamCopier.javaSnowflakeS3StreamCopier.javaSnowflakeGCSStreamCopier.java🚨 User Impact 🚨
there should not be visible 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.mdbootstrap.md. See description and examplesdocs/SUMMARY.mddocs/integrations/<source or destination>/<name>.mdincluding changelog. See changelog exampledocs/integrations/README.mdairbyte-integrations/builds.mdAirbyter
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./publishcommand described hereUpdating a connector
Community member or Airbyter
airbyte_secret./gradlew :airbyte-integrations:connectors:<name>:integrationTest.README.mdbootstrap.md. See description and examplesdocs/integrations/<source or destination>/<name>.mdincluding 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./publishcommand described hereConnector Generator
-scaffoldin their name) have been updated with the latest scaffold by running./gradlew :airbyte-integrations:connector-templates:generator:testScaffoldTemplatesthen checking in your changes