duplicate() function

The duplicate() function duplicates a specified column in a table.

Function type: Transformation
Output data type: Object

duplicate(column: "column-name", as: "duplicate-name")

Parameters

column

The column to duplicate.

Data type: String

as

The name assigned to the duplicate column.

Data type: String

Examples

from(bucket: "telegraf/autogen")
	|> range(start:-5m)
	|> filter(fn: (r) => r._measurement == "cpu")
	|> duplicate(column: "host", as: "server")

This documentation is open source. See a typo? Please, open an issue.


Need help getting up and running? Get Support