Hello, Does Pinot support defining a computed fiel...
# general
p
Hello, Does Pinot support defining a computed field (metric) based on a field that does not appear in the schema but exists in the ingestion message? This is a realtime table if that makes a difference.
n
Yes this is supported
p
So the transformationFunction can receive as a parameter a field that does not exist in the schema? Is there documentation on this use-case?
n
Yes. If you have a function like bar="reverse(foo)", where bar is in the Pinot schema, but foo is not in the Pinot schema, it will work if foo is present in the source record. Pinot will look for all arguments to the function in the row
👍 1
Dunno if this is specifically documented, there might be a mention on the page with the transform functions documentation