Hi everyone! I am trying to store the ‘metrics’ i...
# general
m
Hi everyone! I am trying to store the ‘metrics’ in timeseries format into pinot real-time table. I am not sure how to design the table config to transform the incoming json from the kafka topic to Pinot table as shown in the picture. Basically, I need to match the ‘label-name’ to pinot columns and insert ‘label-value’ to column value from a json array. I would have put entire labels into a single column but I want to allow user to query like “select … from mytable where ZosSystem=‘Blah’“.
m
m
I failed to get it working. I tried to simply the source data by flattening it further.
Copy code
{
  "startTimestamp": "2022-09-30T01:09:00-04:00",
  "endTimestamp": "2022-09-30T01:10:00-04:00",
  "metric": "TRANUSE",
  "value": "3",
  "labels": {
    "ZosSystem": "Blah",
    "CicsRegion": "QACX560"
  }
}
Here is how my real-time table looks -
Depending upon metric, some dimension will be filled and others will be null. Do you see any concerns with respect to such sparse data with null values?