toString() function
The toString()
function converts all values in the _value
column to strings.
toString()
To convert values in a column other than _value
, define a custom function
patterned after the function definition,
but replace _value
with your desired column.
Supported data types
- bool
- bytes
- duration
- float
- int
- time
- uint
Parameters
tables
Input data.
Default is piped-forward data (<-
).
Examples
The following example uses data provided by the sampledata
package
to show how toString()
transforms data.
Convert a float value column to a string column
import "sampledata"
sampledata.float()
|> toString()
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.