sampledata.uint() function
sampledata.uint
returns a sample data set with unsigned integer values.
import "sampledata"
sampledata.uint(includeNull: false)
Parameters
includeNull
Include null values in the returned dataset.
Default is false
.
Examples
- Return sample data with unsigned integer values
- Return unsigned integer sample data with null values
Return sample data with unsigned integer values
Function
import "sampledata"
sampledata.uint()
Output tables
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t1 | 18446744073709551614 |
2021-01-01T00:00:10Z | t1 | 10 |
2021-01-01T00:00:20Z | t1 | 7 |
2021-01-01T00:00:30Z | t1 | 17 |
2021-01-01T00:00:40Z | t1 | 15 |
2021-01-01T00:00:50Z | t1 | 4 |
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t2 | 19 |
2021-01-01T00:00:10Z | t2 | 4 |
2021-01-01T00:00:20Z | t2 | 18446744073709551613 |
2021-01-01T00:00:30Z | t2 | 19 |
2021-01-01T00:00:40Z | t2 | 13 |
2021-01-01T00:00:50Z | t2 | 1 |
Return unsigned integer sample data with null values
Function
import "sampledata"
sampledata.uint(includeNull: true)
Output tables
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t1 | 18446744073709551614 |
2021-01-01T00:00:10Z | t1 | |
2021-01-01T00:00:20Z | t1 | 7 |
2021-01-01T00:00:30Z | t1 | |
2021-01-01T00:00:40Z | t1 | |
2021-01-01T00:00:50Z | t1 | 4 |
_time | tag | _value |
---|---|---|
2021-01-01T00:00:00Z | t2 | |
2021-01-01T00:00:10Z | t2 | 4 |
2021-01-01T00:00:20Z | t2 | 18446744073709551613 |
2021-01-01T00:00:30Z | t2 | 19 |
2021-01-01T00:00:40Z | t2 | |
2021-01-01T00:00:50Z | t2 | 1 |
Was this page helpful?
Thank you for your feedback!
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, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.