Skip to content

Commit

Permalink
Automated Commit - Format and Process Resources Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cynthiaxyin authored and octavia-squidington-iii committed Jul 20, 2023
1 parent 45722bb commit 6e82aba
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ private static String diffRecords(final List<JsonNode> originalExpectedRecords,
return message;
}

private static String diffSingleRecord(final Function<JsonNode, String> recordIdExtractor, final JsonNode expectedRecord, final JsonNode actualRecord) {
private static String diffSingleRecord(final Function<JsonNode, String> recordIdExtractor,
final JsonNode expectedRecord,
final JsonNode actualRecord) {
boolean foundMismatch = false;
String mismatchedRecordMessage = "Row had incorrect data: " + recordIdExtractor.apply(expectedRecord) + "\n";
// Iterate through each column in the expected record and compare it to the actual record's value.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/

package io.airbyte.integrations.base.destination.typing_deduping;

import com.fasterxml.jackson.databind.JsonNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/

package io.airbyte.integrations.base.destination.typing_deduping;

public record Array(AirbyteType items) implements AirbyteType {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/

package io.airbyte.integrations.base.destination.typing_deduping;

import java.util.LinkedHashMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/

package io.airbyte.integrations.base.destination.typing_deduping;

import com.fasterxml.jackson.databind.JsonNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* Copyright (c) 2023 Airbyte, Inc., all rights reserved.
*/

package io.airbyte.integrations.base.destination.typing_deduping;

import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,7 @@ public void testChooseUnion() {
unionToType.put(new Union(ImmutableList.of(BOOLEAN, INTEGER)), INTEGER);

assertAll(
() -> unionToType.forEach((u, t) -> assertEquals(t, u.chooseType()))
);
() -> unionToType.forEach((u, t) -> assertEquals(t, u.chooseType())));
}

@Test
Expand Down

0 comments on commit 6e82aba

Please sign in to comment.