Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update map function documentation in the UI #14350

Closed
russorat opened this issue Jul 15, 2019 · 1 comment
Closed

Update map function documentation in the UI #14350

russorat opened this issue Jul 15, 2019 · 1 comment
Assignees
Milestone

Comments

@russorat
Copy link
Contributor

The example from the Map function documentation needs to be updated to work with the new flux lib: https://v2.docs.influxdata.com/v2.0/reference/flux/functions/built-in/transformations/map/

image

@sanderson
Copy link
Contributor

Ah, right. They removed the implicit column name mapping.

// This old syntax:
map(fn: (r) => r._value * r._value)

// Would get parsed as:
map(fn: (r) => ({ r._value: r._value * r._value }))

Flux doesn't do this any more, so the example function should be updated to use the 2nd form above.

@russorat russorat added this to the diamond milestone Jul 15, 2019
@121watts 121watts self-assigned this Jul 18, 2019
@russorat russorat modified the milestone: diamond Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants