|
7 | 7 | import com.amazonaws.services.s3.AmazonS3;
|
8 | 8 | import com.fasterxml.jackson.databind.ObjectMapper;
|
9 | 9 | import io.airbyte.commons.lang.Exceptions;
|
10 |
| -import io.airbyte.commons.string.Strings; |
11 | 10 | import io.airbyte.db.jdbc.JdbcDatabase;
|
12 | 11 | import io.airbyte.integrations.destination.ExtendedNameTransformer;
|
13 | 12 | import io.airbyte.integrations.destination.jdbc.SqlOperations;
|
@@ -39,8 +38,7 @@ public RedshiftStreamCopier(final String stagingFolder,
|
39 | 38 | final S3DestinationConfig s3Config,
|
40 | 39 | final ExtendedNameTransformer nameTransformer,
|
41 | 40 | final SqlOperations sqlOperations) {
|
42 |
| - super(stagingFolder, destSyncMode, schema, streamName, Strings.addRandomSuffix("", "", FILE_PREFIX_LENGTH) + "_" + streamName, |
43 |
| - client, db, s3Config, nameTransformer, sqlOperations); |
| 41 | + super(stagingFolder, destSyncMode, schema, streamName, client, db, s3Config, nameTransformer, sqlOperations); |
44 | 42 | objectMapper = new ObjectMapper();
|
45 | 43 | }
|
46 | 44 |
|
@@ -77,8 +75,8 @@ public void removeFileAndDropTmpTable() throws Exception {
|
77 | 75 | }
|
78 | 76 |
|
79 | 77 | /**
|
80 |
| - * Creates the contents of a manifest file given the `s3StagingFiles`. There must be at least one |
81 |
| - * entry in a manifest file otherwise it is not considered valid for the COPY command. |
| 78 | + * Creates the contents of a manifest file given the `s3StagingFiles`. There must be at least one entry in a manifest file otherwise it is not |
| 79 | + * considered valid for the COPY command. |
82 | 80 | *
|
83 | 81 | * @return null if no stagingFiles exist otherwise the manifest body String
|
84 | 82 | */
|
|
0 commit comments