Documentation

sampledata.string() function

Flux 0.128.0+

sampledata.string returns a sample data set with string values.

import "sampledata"

sampledata.string(
  includeNull: false
)

Parameters

includeNull

Include null values in the returned dataset. Default is false.

Examples

Return sample data with string values

Function
import "sampledata"

sampledata.string()
Output tables
_timetag_value
2021-01-01T00:00:00Zt1smpl_g9qczs
2021-01-01T00:00:10Zt1smpl_0mgv9n
2021-01-01T00:00:20Zt1smpl_phw664
2021-01-01T00:00:30Zt1smpl_guvzy4
2021-01-01T00:00:40Zt1smpl_5v3cce
2021-01-01T00:00:50Zt1smpl_s9fmgy
_timetag_value
2021-01-01T00:00:00Zt2smpl_b5eida
2021-01-01T00:00:10Zt2smpl_eu4oxp
2021-01-01T00:00:20Zt2smpl_5g7tz4
2021-01-01T00:00:30Zt2smpl_sox1ut
2021-01-01T00:00:40Zt2smpl_wfm757
2021-01-01T00:00:50Zt2smpl_dtn2bv

Return string sample data with null values

Function
import "sampledata"

sampledata.string(includeNull: true)
Output tables
_timetag_value
2021-01-01T00:00:00Zt1smpl_g9qczs
2021-01-01T00:00:10Zt1
2021-01-01T00:00:20Zt1smpl_phw664
2021-01-01T00:00:30Zt1
2021-01-01T00:00:40Zt1
2021-01-01T00:00:50Zt1smpl_s9fmgy
_timetag_value
2021-01-01T00:00:00Zt2
2021-01-01T00:00:10Zt2smpl_eu4oxp
2021-01-01T00:00:20Zt2smpl_5g7tz4
2021-01-01T00:00:30Zt2smpl_sox1ut
2021-01-01T00:00:40Zt2
2021-01-01T00:00:50Zt2smpl_dtn2bv

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.