diff --git a/airbyte-integrations/connectors/destination-redshift/src/main/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGenerator.java b/airbyte-integrations/connectors/destination-redshift/src/main/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGenerator.java index f514c9be9045..b01e524edcb6 100644 --- a/airbyte-integrations/connectors/destination-redshift/src/main/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGenerator.java +++ b/airbyte-integrations/connectors/destination-redshift/src/main/java/io/airbyte/integrations/destination/redshift/typing_deduping/RedshiftSqlGenerator.java @@ -135,7 +135,7 @@ protected Field castedField(final Field field, final AirbyteType type, fin } @Override - protected List> extractRawDataFields(LinkedHashMap columns) { + protected List> extractRawDataFields(final LinkedHashMap columns, final boolean useExpensiveSaferCasting) { return columns .entrySet() .stream() @@ -157,7 +157,7 @@ private Field jsonSerialize(final Field field) { * @param arrays * @return */ - Field arrayConcatStmt(List> arrays) { + Field arrayConcatStmt(final List> arrays) { if (arrays.isEmpty()) { return field("ARRAY()"); // Return an empty string if the list is empty } @@ -168,8 +168,8 @@ Field arrayConcatStmt(List> arrays) { } // Recursive case: construct ARRAY_CONCAT function call - Field lastValue = arrays.get(arrays.size() - 1); - Field recursiveCall = arrayConcatStmt(arrays.subList(0, arrays.size() - 1)); + final Field lastValue = arrays.get(arrays.size() - 1); + final Field recursiveCall = arrayConcatStmt(arrays.subList(0, arrays.size() - 1)); return function("ARRAY_CONCAT", getSuperType(), recursiveCall, lastValue); } @@ -227,7 +227,7 @@ public boolean existingSchemaMatchesStreamConfig(final StreamConfig stream, fina * @return */ @Override - protected Field getRowNumber(List primaryKeys, Optional cursor) { + protected Field getRowNumber(final List primaryKeys, final Optional cursor) { final List> primaryKeyFields = primaryKeys != null ? primaryKeys.stream().map(columnId -> field(quotedName(columnId.name()))).collect(Collectors.toList()) : new ArrayList<>(); @@ -255,7 +255,7 @@ protected Field currentTimestamp() { } @Override - public boolean shouldRetry(Exception e) { + public boolean shouldRetry(final Exception e) { return false; }