TOJSONMAPSTR
This section contains reference documentation for the TOJSONMAPSTR function.
TOJSONMAPSTR(map)
The usage examples are based on extracting fields from the following JSON document:
{"timestamp": "2019-10-09 21:25:25", "meta": {"age": 12}}
Expression | Value |
---|---|
TOJSONMAPSTR(meta) | "{\"age\":12}" |
This function can be used in the table config to extract the
meta
property into the data
column, as described below:{
"tableConfig":{
"ingestionConfig":{
"transformConfigs":[
{
"columnName":"data",
"transformFunction":"TOJSONMAPSTR(meta)"
}
]
}
}
}
Last modified 1yr ago