Calvin Karundu
06/11/2021, 9:52 AMPinot schema column is called "properties" with a type of string
# First Record
{
timestamp: '...',
browser: '...'
}
# Second Record
null
# Third Record
{
balance: '...'
}
This data is provided by the end user and can be whatever they’d like (this is by design) … so there’s really no “schema” for the data in the JSON column.Pedro Silva
06/11/2021, 10:06 AMnoDictionaryColumns
& jsonIndexColumns
in the table configuration.
To query the field I use json transformations making sure to always specify the default value (usually to null
)Calvin Karundu
06/11/2021, 10:56 AMJSONEXTRACTSCALAR
function wrong.
One more issue I had, for records with null
I had to convert it to an empty object for it work, otherwise I would get the exception below:
QueryExecutionError:\njava.lang.IllegalArgumentException: json can not be null ...
Which makes sense 😅Mayank
Calvin Karundu
06/11/2021, 2:26 PMMayank
Calvin Karundu
06/11/2021, 2:29 PM