I'm running a query on exasol - trying to unpack data from a column.
Table has this format
KPI Progress_history
A {'2020-01-01': 100, '2020-02-01': 120}
my attempt referencing the documentation
select
kpi,
progress_history,
json_extract(
progress_history,
'$.""2020-01-01"" LOG ON ERROR',
'$.error()'
)
emits(
"2020-01-01" int,
error_column varchar(2000000)
)
from kpis
output is either
SQL error: data exception - invalid JSON path: end of path expected at path 1, position 5: '$.""2020-'
or
"[{ ""error"" : ""data exception - invalid JSON text: The name of an object member must be a string (surrounded by quotation marks) at position 2: '{'2020'"" }]"
how can I fix this?
I've tried
'$.""2020\\-01\\-01""
, '$."2020\\-01\\-01"
, '$.""2020\-01\-01""
...
TLDR; I think my json path is incorrect because of a special character that I'm trying to escape.