Hi - I have a nested JSON with the following column (queue)
queue = {duration=5, name=FirstQueue}
I'm trying to extract name value above but am getting an error using this: json_extract_scalar(queue, '$.name') As Queue,
Error message: FUNCTION_NOT_FOUND: line 7:1: Unexpected parameters, Expected: json_extract_scalar(varchar(x), jsonpath), json_extract_scalar(json, jsonpath)
I'm sure my syntax is incorrect can anyone help? Thank you!
queue = {duration=5, name=FirstQueue}
I'm trying to extract name value above but am getting an error using this: json_extract_scalar(queue, '$.name') As Queue,
Error message: FUNCTION_NOT_FOUND: line 7:1: Unexpected parameters, Expected: json_extract_scalar(varchar(x), jsonpath), json_extract_scalar(json, jsonpath)
I'm sure my syntax is incorrect can anyone help? Thank you!