I have defined a json column in my schema ```{ "...
# troubleshooting
m
I have defined a json column in my schema
Copy code
{
  "name": "json_col",
  "dataType": "JSON"
}
And defined the transformation config in my table schema
Copy code
"transformConfigs": [
  {
    "columnName": "json_col",
    "transformFunction": "jsonFormat(json_string)"
  }
]
When querying my table, I am seeing escaped json like this –
Copy code
"{\"amount\": 100.1}"
But the
jsonextractscalar
function is not working
Copy code
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.
m
Can you try removing the transform config? Refer to this recipe that ingests and indexes a JSON column: https://dev.startree.ai/docs/pinot/recipes/json-index