We’re creating a REPLACE INTO TABLE pipeline with avro messages from kafka and our schema contains default null fields such as
{"name": "testField", "type": ["null","string"], "default": null }
If a string value is specified we’re seeing the testField column set to {“string”:“Test”} and if null is specified it’s being set as a string “null” instead of NULL. Any help is appreciated.
Here’s the full pipeline definition:
CREATE OR REPLACE PIPELINE TestPipeline
AS LOAD DATA KAFKA 'kfk/TestQueue'
BATCH_INTERVAL 2500
REPLACE INTO TABLE TestTable
FORMAT AVRO
(
TestTable.test_field <- testField
)
SCHEMA
'
{
"name": "TestEvent",
"type": "record",
"fields": [
{
"name": "metadata",
"type": {
"type": "fixed",
"size": 5,
"name": "unused_metadata"
}
},
{"name": "testField", "type": ["null","string"], "default": null }
]
}
'
;