From 22e51bda1c902afaede94a5e1a071cab441744e8 Mon Sep 17 00:00:00 2001 From: LiRen Tu Date: Thu, 28 Apr 2022 23:21:08 -0700 Subject: [PATCH] Add a test case for null value (#12462) --- .../json_conversion_test_cases.json | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/airbyte-integrations/connectors/destination-s3/src/test/resources/parquet/json_schema_converter/json_conversion_test_cases.json b/airbyte-integrations/connectors/destination-s3/src/test/resources/parquet/json_schema_converter/json_conversion_test_cases.json index 5bd54d969dc2..044d2c6ac66b 100644 --- a/airbyte-integrations/connectors/destination-s3/src/test/resources/parquet/json_schema_converter/json_conversion_test_cases.json +++ b/airbyte-integrations/connectors/destination-s3/src/test/resources/parquet/json_schema_converter/json_conversion_test_cases.json @@ -1605,5 +1605,48 @@ "node_id": "abc123", "_airbyte_additional_properties": null } + }, + { + "schemaName": "nullable_value", + "namespace": "namespace22", + "appendAirbyteFields": false, + "jsonSchema": { + "type": "object", + "properties": { + "node_id": { + "type": ["null", "number"] + } + } + }, + "jsonObject": { + "node_id": null + }, + "avroSchema": { + "type": "record", + "name": "nullable_value", + "namespace": "namespace22", + "fields": [ + { + "name": "node_id", + "type": ["null", "double"], + "default": null + }, + { + "name": "_airbyte_additional_properties", + "type": [ + "null", + { + "type": "map", + "values": "string" + } + ], + "default": null + } + ] + }, + "avroObject": { + "node_id": null, + "_airbyte_additional_properties": null + } } ]