influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
28.21k stars 3.51k forks source link

keyValues function notation doesn't work #19133

Open markddavidoff opened 3 years ago

markddavidoff commented 3 years ago

Expected behavior: |> keyValues(fn: (schema) => schema.columns |> filter(fn: (r) => r.label =~ /usage_.*/)) works Actual behavior: errors with type error @54:4-54:46: found unexpected argument fn

Environment info: influxdb cloud 2.0

nathanielc commented 3 years ago

@markddavidoff Thanks for the issue, The keyValues function does not yet support the fn parameter it is only planned work. I checked the docs and it seems it got documented sorry for the confusion there.

Can you share you use case with some context? Perhaps there is an easy to accomplish the same thing.

markddavidoff commented 3 years ago

I managed to accomplish it with using a hard coded list of columns for now but i'd rather not hard code the columns if i can