Manak Bisht
02/18/2025, 11:02 PM{
"name": "json_col",
"dataType": "JSON"
}
And defined the transformation config in my table schema
"transformConfigs": [
{
"columnName": "json_col",
"transformFunction": "jsonFormat(json_string)"
}
]
When querying my table, I am seeing escaped json like this –
"{\"amount\": 100.1}"
But the jsonextractscalar function is not working
select jsonextractscalar(json_col, '$.amount', 'BIG_DECIMAL') from table_name where id='1234'
and returning the error java.lang.IllegalArgumentException: Cannot resolve JSON path on some records. Consider setting a default value.
even though the key exists for that record.Mayank