Open KKcorps opened 2 years ago
@KKcorps Still trying to repro, but shouldn't the transformFunction be
"JSONPATHSTRING(header_js, '$.header.nnTransId')"
? As per the data being ingested?
Yeah, you are right. This was provided by the person who got the issue.
Confirming that issue is seen in master branch too. Looks like, _transformPipeline gets created once when LLRealtimeSegmentDataManager is created for the segment, and any changes to schema or tableConfig does not lead to updates to the pipeline. https://github.com/apache/pinot/blob/master/pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/LLRealtimeSegmentDataManager.java#L1337
cc: @KKcorps
Yeah, you are right. This was provided by the person who got the issue.
Just for future reference, JSONPATHSTRING(header_js, '$.nnTransId') is indeed the correct expression, since it works on header_js which has already been parsed via header
"columnName": "header_js",
"transformFunction": "jsonFormat(header)"
Steps to reproduce in
0.10.0
release -Push some records in the following format
Update schema in pinot to add the following column
Update table in Pinot to add the following column
header_nnTransId
appearsnull
when queried in Pinot when it should contain the correct value.Optional: Verify after triggering
RealtimeSegmentValidationManager
job