Skip to content

Commit

Permalink
update ID column to be int
Browse files Browse the repository at this point in the history
  • Loading branch information
edgao committed Jul 27, 2022
1 parent 3c97cdd commit ab08875
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ void testDiscoverSourceSchema() throws ApiException {

final AirbyteCatalog actual = testHarness.discoverSourceSchema(sourceId);

final Map<String, Map<String, DataType>> fields = ImmutableMap.of(
COLUMN_ID, ImmutableMap.of("type", DataType.NUMBER),
COLUMN_NAME, ImmutableMap.of("type", DataType.STRING));
final Map<String, Map<String, String>> fields = ImmutableMap.of(
COLUMN_ID, ImmutableMap.of("type", DataType.NUMBER.getValue(), "airbyte_type", "integer"),
COLUMN_NAME, ImmutableMap.of("type", DataType.STRING.getValue()));
final JsonNode jsonSchema = Jsons.jsonNode(ImmutableMap.builder()
.put("type", "object")
.put("properties", fields)
Expand Down

0 comments on commit ab08875

Please sign in to comment.