Raghu Koratagere
02/26/2025, 6:33 AM{
"_id": "56c6d0eb0cf2f1de556d486b",
"leadId": "ff80818152f816fc0152f8a016cb2184",
"city": "PUNE",
"agreementType": "LL_AGREEMENT"
}
TableConfig:
"ingestionConfig": {
"transformConfigs": [
{
"columnName": "doc_agreement_type",
"transformFunction": "JSONPATH_STRING('', '$.agreementType')"
},
{
"columnName": "doc_lead_id",
"transformFunction": "lower(leadId)"
}
]
Issue: doc_lead_id is populated but doc_agreement_type is not (remains blank)Bolek Ziobrowski
02/26/2025, 7:26 AMJSONPATH_STRING('', '$.agreementType') should not be blank but refer to a field name.Raghu Koratagere
02/26/2025, 7:27 AMRaghu Koratagere
02/26/2025, 7:35 AMkafka_message of type String hoping pinot would store the whole JSON there and i can refer to that column in Transformation function , but the column kafka_message remains NULLBolek Ziobrowski
02/26/2025, 7:50 AMJSONPATH_STRING('agreementType', '$')
?Raghu Koratagere
02/26/2025, 12:22 PMRaghu Koratagere
02/26/2025, 12:24 PMJSONPATH_STRING('$', '$') doesnt return the document. Wonder what exactly is this ‘$’Bolek Ziobrowski
02/26/2025, 12:42 PMRaghu Koratagere
02/26/2025, 2:06 PMJSONPATHSTRING and not JSONPATH_STRING. Even assuming they are same function, signature is: JSONPATHSTRING(jsonField, 'jsonPath', [defaultValue]). The usage JSONPATH_STRING('agreementType', '$') seems like first argument is ‘jsonPath’ !Raghu Koratagere
02/26/2025, 2:06 PMJSONPATH_STRING('$', '$') , any thoughts?