You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-jdbc/src/main/java/io/airbyte/integrations/destination/jdbc/copy/s3/S3StreamCopier.java
+14-10
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,7 @@ public abstract class S3StreamCopier implements StreamCopier {
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-jdbc/src/main/java/io/airbyte/integrations/destination/jdbc/copy/s3/S3StreamCopierFactory.java
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-jdbc/src/test/java/io/airbyte/integrations/destination/jdbc/copy/s3/S3StreamCopierTest.java
+37-1
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@
10
10
importstaticorg.mockito.Mockito.doReturn;
11
11
importstaticorg.mockito.Mockito.mock;
12
12
importstaticorg.mockito.Mockito.mockConstruction;
13
+
importstaticorg.mockito.Mockito.never;
13
14
importstaticorg.mockito.Mockito.verify;
14
15
15
16
importcom.amazonaws.services.s3.AmazonS3Client;
@@ -130,7 +131,7 @@ public void setup() {
130
131
"fake-schema",
131
132
s3Client,
132
133
db,
133
-
S3_CONFIG,
134
+
newS3CopyConfig(true, S3_CONFIG),
134
135
newExtendedNameTransformer(),
135
136
sqlOperations,
136
137
CONFIGURED_STREAM,
@@ -220,6 +221,41 @@ public void deletesStagingFiles() throws Exception {
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-redshift/src/main/java/io/airbyte/integrations/destination/redshift/RedshiftCopyS3Destination.java
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-redshift/src/main/java/io/airbyte/integrations/destination/redshift/RedshiftStreamCopier.java
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-redshift/src/main/java/io/airbyte/integrations/destination/redshift/RedshiftStreamCopierFactory.java
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-redshift/src/main/resources/spec.json
+6
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,12 @@
111
111
"examples": ["10"],
112
112
"description": "Optional. Increase this if syncing tables larger than 100GB. Only relevant for COPY. Files are streamed to S3 in parts. This determines the size of each part, in MBs. As S3 has a limit of 10,000 parts per file, part size affects the table size. This is 10MB by default, resulting in a default limit of 100GB tables. Note, a larger part size will result in larger memory requirements. A rule of thumb is to multiply the part size by 10 to get the memory requirement. Modify this with care.",
113
113
"title": "Stream Part Size"
114
+
},
115
+
"purge_staging_data": {
116
+
"title": "Purge Staging Files and Tables",
117
+
"type": "boolean",
118
+
"description": "Whether to delete the staging files from S3 after completing the sync. See the docs for details. Only relevant for COPY. Defaults to true.",
Copy file name to clipboardexpand all lines: airbyte-integrations/connectors/destination-redshift/src/test/java/io/airbyte/integrations/destination/redshift/RedshiftStreamCopierTest.java
0 commit comments