Facing a issue with transofrmations. Schema: ```...
# troubleshooting
r
Facing a issue with transofrmations. Schema:
Copy code
{
  "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
Copy code
"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
Copy code
{
  "columnName": "domain",
  "transformFunction": "json_format(data, '$.domain', 'STRING')"
}
as well but the same error is thrown.
Thanks @Kishore G for pointing out the typo in
jsonPathString(data, '$.domain).
It worked now.