Ravi Jain
03/09/2025, 1:04 PM{
"schemaName": "AirPageLoad",
"dimensionFieldSpecs": [
{
"name": "data",
"dataType": "JSON"
},
{
"name": "id",
"dataType": "STRING"
},
{
"name": "schemaName",
"dataType": "STRING"
},
{
"name": "schemaVersion",
"dataType": "STRING"
},
{
"name": "tz",
"dataType": "STRING"
},
{
"name": "created_at",
"dataType": "TIMESTAMP",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
},
{
"name": "domain",
"dataType": "STRING"
}
],
"metricFieldSpecs": [],
"dateTimeFieldSpecs": [
{
"name": "timestamp",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
}
]
}
Table Transform Config
"ingestionConfig": {
"continueOnError": false,
"rowTimeValueCheck": false,
"segmentTimeValueCheck": true,
"transformConfigs": [
{
"columnName": "created_at",
"transformFunction": "DATETIMECONVERT(\"timestamp\", '1:MILLISECONDS:EPOCH', '1:MILLISECONDS:SIMPLE_DATE_FORMAT:yyyy-MM-dd HH:mm:ss.sss', '1:MILLISECONDS')"
},
{
"columnName": "domain",
"transformFunction": "jsonPathString(data, '$.domain)"
}
]
}
I am getting below error. Can somebody pls help on this.
I tried
{
"columnName": "domain",
"transformFunction": "json_format(data, '$.domain', 'STRING')"
}
as well but the same error is thrown.Ravi Jain
03/09/2025, 2:47 PMjsonPathString(data, '$.domain). It worked now.