diff --git a/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_catalog.json b/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_catalog.json index 20c4651c143e..0f976d408286 100644 --- a/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_catalog.json +++ b/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_catalog.json @@ -125,6 +125,21 @@ } } } + }, + { + "name": "stream_with_dates", + "json_schema": { + "properties": { + "some_date": { + "type": "string", + "format": "date" + }, + "some_datetime": { + "type": "string", + "format": "date-time" + } + } + } } ] } diff --git a/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_messages.txt b/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_messages.txt index bb14b273a14c..c5b9c74e5d48 100644 --- a/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_messages.txt +++ b/airbyte-integrations/bases/standard-destination-test/src/main/resources/edge_case_messages.txt @@ -14,4 +14,18 @@ {"type": "RECORD", "record": {"stream": "stream_name_next", "emitted_at": 1602637589400, "data": { "some_id" : 201, "next_field_name" : "next_field_name_1" }}} {"type": "RECORD", "record": {"stream": "stream_name_next", "emitted_at": 1602637589450, "data": { "some_id" : 202, "next_field_name" : "next_field_name_2" }}} {"type": "RECORD", "record": {"stream": "stream_name_next", "emitted_at": 1602637589500, "data": { "some_id" : 203 }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-1-1", "some_datetime" : "2021-1-1 01:01:01" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-11", "some_datetime" : "2021-1-1 01:01:01 +1" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-15", "some_datetime" : "2021-1-1T01:01:01 +1:00" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-16", "some_datetime" : "2021-01-01 01:01:01" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-11-13", "some_datetime" : "2021-01-01 01:01:01 +0000" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-10-12", "some_datetime" : "2021-01-01T01:01:01Z" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-12-17", "some_datetime" : "2021-01-01T01:01:01-01:00" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-18", "some_datetime" : "2021-01-01T01:01:01 +1:00" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-19", "some_datetime" : "2021-01-01 01:01:01 UTC" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-20", "some_datetime" : "2021-01-01T01:01:01 UTC" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-21", "some_datetime" : "2021-01-01T01:01:01 +1" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-22", "some_datetime" : "2021-01-01T01:01:01 +0000" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-23", "some_datetime" : "2021-01-01T01:01:01+0000" }}} +{"type": "RECORD", "record": {"stream": "stream_with_dates", "emitted_at": 1602637589000, "data": { "some_date" : "2021-01-24", "some_datetime" : "2021-01-01T01:01:01+1" }}} {"type": "STATE", "state": { "data": {"start_date": "2020-09-02"}}} diff --git a/airbyte-integrations/bases/standard-destination-test/src/main/resources/format_reference.txt b/airbyte-integrations/bases/standard-destination-test/src/main/resources/format_reference.txt new file mode 100644 index 000000000000..da5a90781c7b --- /dev/null +++ b/airbyte-integrations/bases/standard-destination-test/src/main/resources/format_reference.txt @@ -0,0 +1,23 @@ +VALID FORMATS: + +"2021-1-1" +"2021-01-01" +"2021-1-1 01:01:01" +"2021-1-1 01:01:01 +1" +"2021-01-01T01:01:01-01:00" +"2021-1-1T01:01:01 +1:00" +"2021-01-01 01:01:01" +"2021-01-01 01:01:01 +0000" +"2021-01-01T01:01:01Z" +"2021-01-01T01:01:01-01:00" +"2021-01-01T01:01:01 +1:00" + + +INVALID FORMATS: + +"2021-01-01 01:01:01 UTC" +"2021-01-01T01:01:01 UTC" +"2021-01-01T01:01:01 +1" +"2021-01-01T01:01:01 +0000" +"2021-01-01T01:01:01+0000" +"2021-01-01T01:01:01+1" \ No newline at end of file