Flux 0.184 (#4471)

* added flux 0.184 placeholder release notes

* applied updates to the Flux spec

* Flux 0.184 release notes

* Flux 0.184 stdlib updates
pull/4467/head
Scott Anderson 2022-09-21 08:40:30 -06:00 committed by GitHub
parent eeaab0f240
commit c4c7cc6d31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
88 changed files with 918 additions and 330 deletions

View File

@ -10,6 +10,26 @@ aliases:
- /influxdb/cloud/reference/release-notes/flux/
---
## v0.184.0 [2022-09-21]
### Breaking changes
- Update logical _null_ handling and align all logical operator implementations
(vectorized, row-based, as well as "in the interpreter") to be consistent and
representative of the Flux SPEC.
### Features
- Add array type conversion functions to the
[experimental `array` package](/flux/v0.x/stdlib/experimental/array/).
### Bug fixes
- Update SPEC and fix some inconsistencies.
- Update `sort limit` to skips chunks with no rows.
- Don't report an error about testcases in the LSP.
- Prevent the metadata map from being concurrently mutated.
- Don't stackoverflow on deeply nested expressions.
---
## v0.183.0 [2022-09-12]
### Features

View File

@ -16,12 +16,6 @@ flux/v0.x/tags: [flux]
The following documents specify the Flux language and query execution.
{{% note %}}
This document is a living document and may not represent the current implementation of Flux.
Any section that is not currently implemented is commented with a **[IMPL#XXX]** where
**XXX** is an issue number tracking discussion and progress towards implementation.
{{% /note %}}
{{< children >}}
{{< page-nav next="/flux/v0.x/spec/notation/" >}}

View File

@ -14,12 +14,6 @@ aliases:
- /influxdb/cloud/reference/flux/language/data-model/
---
{{% note %}}
This document is a living document and may not represent the current implementation of Flux.
Any section that is not currently implemented is commented with a **[IMPL#XXX]** where
**XXX** is an issue number tracking discussion and progress towards implementation.
{{% /note %}}
Flux employs a basic data model built from basic data types.
The data model consists of tables, records, columns and streams.
@ -54,20 +48,14 @@ These common values are referred to as the "group key value" and can be represen
A tables schema consists of its group key and its columns' labels and types.
{{% note %}}
[IMPL#463](https://github.com/influxdata/flux/issues/463) Specify the primitive types that make up stream and table types
{{% /note %}}
## Stream of tables
A **stream** represents a potentially unbounded set of tables.
A stream is grouped into individual tables using their respective group keys.
Tables within a stream each have a unique group key value.
{{% note %}}
[IMPL#463](https://github.com/influxdata/flux/issues/463) Specify the primitive
types that make up stream and table types
{{% /note %}}
A stream is represented using the stream type `stream[A] where A: Record`.
The group key is not explicity modeled in the Flux type system.
## Missing values (null)

View File

@ -131,6 +131,17 @@ mul = (a,b) => a * b
Function literals are _closures_ and may refer to variables defined in a surrounding block.
Those variables are shared between the function literal and the surrounding block.
Function arguments are named. There are no positional arguments.
Values implementing a function type must use the same argument names.
```js
apply = (f, x) => f(x: x)
apply(f: (x) => x + 1, x: 2) // 3
apply(f: (a) => a + 1, x: 2) // error, function must use the same argument name `x`.
apply(f: (x, a=3) => a + x, x: 2) // 5, extra default arguments are allowed
```
## Call expressions
A _call expression_ invokes a function with the provided arguments.

View File

@ -11,12 +11,6 @@ aliases:
- /influxdb/cloud/reference/flux/language/lexical-elements/
---
{{% note %}}
This document is a living document and may not represent the current implementation of Flux.
Any section that is not currently implemented is commented with a **[IMPL#XXX]** where
**XXX** is an issue number tracking discussion and progress towards implementation.
{{% /note %}}
## Comments
Comment serve as documentation.
@ -63,15 +57,11 @@ longIdentifierName
The following keywords are reserved and may not be used as identifiers:
```
and import not return option test
empty in or package builtin
and import option if
or package builtin then
not return testcase else exists
```
{{% note %}}
[IMPL#764](https://github.com/influxdata/flux/issues/764) Add `in` and `empty` operator support.
{{% /note %}}
## Operators
The following character sequences represent operators:
@ -79,26 +69,11 @@ The following character sequences represent operators:
```
+ == != ( ) =>
- < !~ [ ] ^
* > =~ { }
/ <= = , :
* > =~ { } ?
/ <= = , : "
% >= <- . |>
```
## Numeric literals
Numeric literals may be integers or floating point values.
Literals have arbitrary precision and are coerced to a specific type when used.
The following coercion rules apply to numeric literals:
* An integer literal can be coerced to an "int", "uint", or "float" type,
* A float literal can be coerced to a "float" type.
* An error will occur if the coerced type cannot represent the literal value.
{{% note %}}
[IMPL#476](https://github.com/influxdata/flux/issues/476) Allow numeric literal coercion.
{{% /note %}}
### Integer literals
An integer literal is a sequence of digits representing an integer value.
@ -196,63 +171,55 @@ These operations are performed on each time unit independently.
5w
1mo5d // 1 month and 5 days
-1mo5d // negative 1 month and 5 days
5w * 2 // 10 weeks
```
Durations can be added to date times to produce a new date time.
Addition and subtraction of durations to date times do not commute and are left associative.
Addition and subtraction of durations to date times applies months, days and seconds in that order.
Durations can be added to date times to produce a new date time.
Addition and subtraction of durations to date times applies months and nanoseconds in that order.
When months are added to a date times and the resulting date is past the end of the month, the day is rolled back to the last day of the month.
Of note is that addition and subtraction of durations to date times does not commute.
##### Examples of duration literals
```js
2018-01-01T00:00:00Z + 1d // 2018-01-02T00:00:00Z
2018-01-01T00:00:00Z + 1mo // 2018-02-01T00:00:00Z
2018-01-01T00:00:00Z + 2mo // 2018-03-01T00:00:00Z
2018-01-31T00:00:00Z + 2mo // 2018-03-31T00:00:00Z
2018-02-28T00:00:00Z + 2mo // 2018-04-28T00:00:00Z
2018-01-31T00:00:00Z + 1mo // 2018-02-28T00:00:00Z, February 31th is rolled back to the last day of the month, February 28th in 2018.
import "date"
// Addition and subtraction of durations to date times does not commute
2018-02-28T00:00:00Z + 1mo + 1d // 2018-03-29T00:00:00Z
2018-02-28T00:00:00Z + 1mo + 1d // 2018-03-29T00:00:00Z
2018-02-28T00:00:00Z + 1d + 1mo // 2018-04-01T00:00:00Z
2018-01-01T00:00:00Z + 2mo - 1d // 2018-02-28T00:00:00Z
2018-01-01T00:00:00Z - 1d + 3mo // 2018-03-31T00:00:00Z
2018-01-31T00:00:00Z + 1mo + 1mo // 2018-03-28T00:00:00Z
2018-01-31T00:00:00Z + 2mo // 2018-03-31T00:00:00Z
date.add(d: 1d, to: 2018-01-01T00:00:00Z) // 2018-01-02T00:00:00Z
date.add(d: 1mo, to: 2018-01-01T00:00:00Z) // 2018-02-01T00:00:00Z
date.add(d: 2mo, to: 2018-01-01T00:00:00Z) // 2018-03-01T00:00:00Z
date.add(d: 2mo, to: 2018-01-31T00:00:00Z) // 2018-03-31T00:00:00Z
date.add(d: 2mo, to: 2018-02-28T00:00:00Z) // 2018-04-28T00:00:00Z
date.add(d: 1mo, to: 2018-01-31T00:00:00Z) // 2018-02-28T00:00:00Z, February 31th is rolled back to the last day of the month, February 28th in 2018.
// Addition and subtraction of durations to date times applies months, days and seconds in that order.
2018-01-28T00:00:00Z + 1mo + 2d // 2018-03-02T00:00:00Z
2018-01-28T00:00:00Z + 1mo2d // 2018-03-02T00:00:00Z
2018-01-28T00:00:00Z + 2d + 1mo // 2018-02-28T00:00:00Z, explicit left associative add of 2d first changes the result
2018-02-01T00:00:00Z + 2mo2d // 2018-04-03T00:00:00Z
2018-01-01T00:00:00Z + 1mo30d // 2018-03-02T00:00:00Z, Months are applied first to get February 1st, then days are added resulting in March 2 in 2018.
2018-01-31T00:00:00Z + 1mo1d // 2018-03-01T00:00:00Z, Months are applied first to get February 28th, then days are added resulting in March 1 in 2018.
date.add(d: 1d, to: date.add(d: 1mo, to: 2018-02-28T00:00:00Z)) // 2018-03-29T00:00:00Z
date.add(d: 1mo, to: date.add(d: 1d, to: 2018-02-28T00:00:00Z)) // 2018-04-01T00:00:00Z
date.sub(d: 1d, from: date.add(d: 2mo, to: 2018-01-01T00:00:00Z)) // 2018-02-28T00:00:00Z
date.add(d: 3mo, to: date.sub(d: 1d, from: 2018-01-01T00:00:00Z)) // 2018-03-31T00:00:00Z
date.add(d: 1mo, to: date.add(d: 1mo, to: 2018-01-31T00:00:00Z)) // 2018-03-28T00:00:00Z
date.add(d: 2mo, to: 2018-01-31T00:00:00Z) // 2018-03-31T00:00:00Z
// Multiplication works
2018-01-01T00:00:00Z + 1mo * 1 // 2018-02-01T00:00:00Z
2018-01-01T00:00:00Z + 1mo * 2 // 2018-03-01T00:00:00Z
2018-01-01T00:00:00Z + 1mo * 3 // 2018-04-01T00:00:00Z
2018-01-31T00:00:00Z + 1mo * 1 // 2018-02-28T00:00:00Z
2018-01-31T00:00:00Z + 1mo * 2 // 2018-03-31T00:00:00Z
2018-01-31T00:00:00Z + 1mo * 3 // 2018-04-30T00:00:00Z
// Addition and subtraction of durations to date times applies months and nanoseconds in that order.
date.add(d: 2d, to: date.add(d: 1mo, to: 2018-01-28T00:00:00Z)) // 2018-03-02T00:00:00Z
date.add(d: 1mo2d, to: 2018-01-28T00:00:00Z) // 2018-03-02T00:00:00Z
date.add(d: 1mo, to: date.add(d: 2d, to: 2018-01-28T00:00:00Z)) // 2018-02-28T00:00:00Z, explicit add of 2d first changes the result
date.add(d: 2mo2d, to: 2018-02-01T00:00:00Z) // 2018-04-03T00:00:00Z
date.add(d: 1mo30d, to: 2018-01-01T00:00:00Z) // 2018-03-03T00:00:00Z, Months are applied first to get February 1st, then days are added resulting in March 3 in 2018.
date.add(d: 1mo1d, to: 2018-01-31T00:00:00Z) // 2018-03-01T00:00:00Z, Months are applied first to get February 28th, then days are added resulting in March 1 in 2018.
// Multiplication and addition of durations to date times
date.add(d: date.scale(d:1mo, n:1), to: 2018-01-01T00:00:00Z) // 2018-02-01T00:00:00Z
date.add(d: date.scale(d:1mo, n:2), to: 2018-01-01T00:00:00Z) // 2018-03-01T00:00:00Z
date.add(d: date.scale(d:1mo, n:3), to: 2018-01-01T00:00:00Z) // 2018-04-01T00:00:00Z
date.add(d: date.scale(d:1mo, n:1), to: 2018-01-31T00:00:00Z) // 2018-02-28T00:00:00Z
date.add(d: date.scale(d:1mo, n:2), to: 2018-01-31T00:00:00Z) // 2018-03-31T00:00:00Z
date.add(d: date.scale(d:1mo, n:3), to: 2018-01-31T00:00:00Z) // 2018-04-30T00:00:00Z
```
{{% note %}}
[IMPL#413](https://github.com/influxdata/flux/issues/413) Implement Duration vectors.
{{% /note %}}
## Date and time literals
A _date and time literal_ represents a specific moment in time.
It has a date part, a time part and a time offset part.
The format follows the [RFC 3339](https://tools.ietf.org/html/rfc3339) specification.
The time is optional.
When it is omitted, the time is assumed to be midnight for the default location.
The `time_offset` is optional.
When it is omitted, the location option is used to determine the offset.
The time is optional. When it is omitted the time is assumed to be midnight UTC.
```js
date_time_lit = date [ "T" time ] .
@ -260,7 +227,7 @@ date = year "-" month "-" day .
year = decimal_digit decimal_digit decimal_digit decimal_digit .
month = decimal_digit decimal_digit .
day = decimal_digit decimal_digit .
time = hour ":" minute ":" second [ fractional_second ] [ time_offset ] .
time = hour ":" minute ":" second [ fractional_second ] time_offset .
hour = decimal_digit decimal_digit .
minute = decimal_digit decimal_digit .
second = decimal_digit decimal_digit .
@ -273,14 +240,9 @@ time_offset = "Z" | ("+" | "-" ) hour ":" minute .
```js
1952-01-25T12:35:51Z
2018-08-15T13:36:23-07:00
2009-10-15T09:00:00 // October 15th 2009 at 9 AM in the default location
2018-01-01 // midnight on January 1st 2018 in the default location
2018-01-01 // midnight on January 1st 2018 UTC
```
{{% note %}}
[IMPL#152](https://github.com/influxdata/flux/issues/152) Implement shorthand time literals.
{{% /note %}}
### String literals
A _string literal_ represents a sequence of characters enclosed in double quotes.
@ -297,6 +259,7 @@ String literals support several escape sequences.
```
Additionally, any byte value may be specified via a hex encoding using `\x` as the prefix.
The hex encoding of values must result in a valid UTF-8 sequence.
```
string_lit = `"` { unicode_value | byte_value | StringExpression | newline } `"` .
@ -322,13 +285,8 @@ Embedded expressions are enclosed in a dollar sign and curly braces (`${}`).
The expressions are evaluated in the scope containing the string literal.
The result of an expression is formatted as a string and replaces the string content between the braces.
All types are formatted as strings according to their literal representation.
A function `printf` exists to allow more precise control over formatting of various types.
To include the literal `${` within a string, it must be escaped.
{{% note %}}
[IMPL#731](https://github.com/influxdata/flux/issues/731) Add printf function.
{{% /note %}}
##### Example: Interpolation
```js
@ -344,16 +302,17 @@ A _regular expression literal_ represents a regular expression pattern, enclosed
Within the forward slashes, any unicode character may appear except for an unescaped forward slash.
The `\x` hex byte value representation from string literals may also be present.
Regular expression literals support only the following escape sequences:
In addition to standard escape sequences, regular expression literals also
support the following escape sequences:
```
\/ U+002f forward slash
\\ U+005c backslash
```
```
regexp_lit = "/" { unicode_char | byte_value | regexp_escape_char } "/" .
regexp_escape_char = `\` (`/` | `\`)
regexp_lit = "/" regexp_char { regexp_char } "/" .
regexp_char = unicode_char | byte_value | regexp_escape_char .
regexp_escape_char = `\/`
```
##### Examples of regular expression literals
@ -363,7 +322,8 @@ regexp_escape_char = `\` (`/` | `\`)
/http:\/\/localhost:8086/
/^\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e(ZZ)?$/
/^日本語(ZZ)?$/ // the above two lines are equivalent
/\\xZZ/ // this becomes the literal pattern "\xZZ"
/a\/b\s\w/ // escape sequences and character class shortcuts are supported
/(?:)/ // the empty regular expression
```
The regular expression syntax is defined by [RE2](https://github.com/google/re2/wiki/Syntax).

View File

@ -23,6 +23,10 @@ Below is a list of built-in options currently implemented in the Flux language:
- [task](#task)
- [location](#location)
Options are not closed, meaning new options may be defined and consumed within packages and scripts.
Changing the value of an option for a package changes the value for all references
to that option from any other package.
#### now
The `now` option is a function that returns a time value used as a proxy for the current system time.
@ -51,10 +55,10 @@ The default value is [`timezone.utc`](/flux/v0.x/stdlib/timezone/#constants).
```js
import "timezone"
// Set timezone to be 5 hours west of UTC.
// Set timezone to be 5 hours west of UTC
option location = timezone.fixed(offset: -5h)
// Set location to be America/Denver.
// Set location to be America/Denver
option location = timezone.location(name: "America/Denver")
```

View File

@ -11,12 +11,6 @@ aliases:
- /influxdb/cloud/reference/flux/language/statements/
---
{{% note %}}
This document is a living document and may not represent the current implementation of Flux.
Any section that is not currently implemented is commented with a **[IMPL#XXX]** where
**XXX** is an issue number tracking discussion and progress towards implementation.
{{% /note %}}
A _statement_ controls execution.
```js

View File

@ -23,10 +23,12 @@ All such values must have a corresponding builtin statement to declare the exist
BuiltinStatement = "builtin" identifier ":" TypeExpression .
TypeExpression = MonoType ["where" Constraints] .
MonoType = Tvar | BasicType | ArrayType | RecordType | FunctionType .
MonoType = Tvar | BasicType | ArrayType | StreamType | VectorType | RecordType | FunctionType .
Tvar = "A" … "Z" .
BasicType = "int" | "uint" | "float" | "string" | "bool" | "time" | "duration" | "bytes" | "regexp" .
ArrayType = "[" MonoType "]" .
StreamType = "stream" "[" MonoType "]" .
VectorType = "vector" "[" MonoType "]" .
RecordType = ( "{" [RecordTypeProperties] "}" ) | ( "{" Tvar "with" RecordTypeProperties "}" ) .
FunctionType = "(" [FunctionTypeParameters] ")" "=>" MonoType .
@ -45,7 +47,7 @@ Kinds = identifier { "+" identifier } .
##### Example
```js
builtin filter : (<-tables: [T], fn: (r: T) => bool) => [T]
builtin filter : (<-tables: stream[T], fn: (r: T) => bool) => stream[T]
```
{{< page-nav prev="/flux/v0.x/spec/side-effects/" next="/flux/v0.x/spec/data-model/" >}}

View File

@ -11,12 +11,6 @@ aliases:
- /influxdb/cloud/reference/flux/language/types/
---
{{% note %}}
This document is a living document and may not represent the current implementation of Flux.
Any section that is not currently implemented is commented with a **[IMPL#XXX]** where
**XXX** is an issue number tracking discussion and progress towards implementation.
{{% /note %}}
A **type** defines the set of values and operations on those values.
Types are never explicitly declared as part of the syntax except as part of a [builtin statement](/flux/v0.x/spec/system-built-ins/).
Types are always inferred from the usage of the value.
@ -88,9 +82,7 @@ Flux supports [RFC3339 timestamps](/influxdb/cloud/reference/glossary/#rfc3339-t
### Duration types
A _duration type_ represents a length of time with nanosecond precision.
The duration type name is `duration`.
The duration type is nullable
Durations can be added to times to produce a new time.
The duration type is nullable.
##### Examples of duration types
```js
@ -108,10 +100,6 @@ Durations can be added to times to produce a new time.
3d12h4m25s // 3 days, 12 hours, 4 minutes, and 25 seconds
```
{{% note %}}
[IMPL#2026](https://github.com/influxdata/flux/issues/2026) Operator for time arithmetic
{{% /note %}}
### String types
A _string type_ represents a possibly empty sequence of characters.
Strings are immutable and cannot be modified once created.
@ -122,9 +110,6 @@ The string type is nullable.
An empty string is **not** a _null_ value.
{{% /note %}}
The length of a string is its size in bytes, not the number of characters,
since a single character may be multiple bytes.
### Bytes types
A _bytes type_ represents a sequence of byte values.
The bytes type name is `bytes`.
@ -162,14 +147,12 @@ Values must also be of the same type.
### Function types
A _function type_ represents a set of all functions with the same argument and result types.
Functions arguments are always named (there are no positional arguments).
Therefore implementing a function type requires that the arguments be named the same.
### Generator types
A _generator type_ represents a value that produces an unknown number of other values.
The generated values may be of any other type, but must all be the same type.
{{% note %}}
[IMPL#412](https://github.com/influxdata/flux/issues/412) Implement Generators types.
{{% /note %}}
### Stream types
A _stream type_ represents an unbounded collection of values.
The values must be records and those records may only hold int, uint, float, string, time or bool types.
## Polymorphism
Flux functions can be polymorphic, meaning a function can be applied to arguments of different types.

View File

@ -0,0 +1,76 @@
---
title: array.toBool() function
description: >
`array.toBool()` converts all values in an array to booleans.
menu:
flux_0_x_ref:
name: array.toBool
parent: experimental/array
identifier: experimental/array/toBool
weight: 201
flux/v0.x/tags: [type-conversions]
introduced: 0.184.0
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L176-L176
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`array.toBool()` converts all values in an array to booleans.
#### Supported array types
- `[string]` with values `true` or `false`
- `[int]` with values `1` or `0`
- `[uint]` with values `1` or `0`
- `[float]` with values `1.0` or `0.0`
##### Function type signature
```js
(<-arr: [A]) => [bool]
```
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
## Parameters
### arr
Array of values to convert. Default is the piped-forward array (`<-`).
## Examples
### Convert an array of integers to booleans
```js
import "experimental/array"
arr = [
1,
1,
0,
1,
0,
]
array.toBool(arr: arr)// Returns [true, true, false, true, false]
```

View File

@ -0,0 +1,69 @@
---
title: array.toDuration() function
description: >
`array.toDuration()` converts all values in an array to durations.
menu:
flux_0_x_ref:
name: array.toDuration
parent: experimental/array
identifier: experimental/array/toDuration
weight: 201
flux/v0.x/tags: [type-conversions]
introduced: 0.184.0
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L205-L205
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`array.toDuration()` converts all values in an array to durations.
#### Supported array types and behaviors
- `[int]` (parsed as nanosecond epoch timestamps)
- `[string]` with values that use [duration literal](/flux/v0.x/data-types/basic/duration/#duration-syntax) representation.
- `[uint]` (parsed as nanosecond epoch timestamps)
##### Function type signature
```js
(<-arr: [A]) => [duration]
```
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
## Parameters
### arr
Array of values to convert. Default is the piped-forward array (`<-`).
## Examples
### Convert an array of integers to durations
```js
import "experimental/array"
arr = [80000000000, 56000000000, 132000000000]
array.toDuration(arr: arr)// Returns [1m20s, 56s, 2m12s]
```

View File

@ -0,0 +1,86 @@
---
title: array.toFloat() function
description: >
`array.toFloat()` converts all values in an array to floats.
menu:
flux_0_x_ref:
name: array.toFloat
parent: experimental/array
identifier: experimental/array/toFloat
weight: 201
flux/v0.x/tags: [type-conversions]
introduced: 0.184.0
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L245-L245
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`array.toFloat()` converts all values in an array to floats.
#### Supported array types
- `[string]` (numeric, scientific notation, ±Inf, or NaN)
- `[bool]`
- `[int]`
- `[uint]`
##### Function type signature
```js
(<-arr: [A]) => [float]
```
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
## Parameters
### arr
Array of values to convert. Default is the piped-forward array (`<-`).
## Examples
- [Convert an array of integers to floats](#convert-an-array-of-integers-to-floats)
- [Convert an array of strings to floats](#convert-an-array-of-strings-to-floats)
### Convert an array of integers to floats
```js
import "experimental/array"
arr = [12, 24, 36, 48]
array.toFloat(arr: arr)// Returns [12.0, 24.0, 36.0, 48.0]
```
### Convert an array of strings to floats
```js
import "experimental/array"
arr = ["12", "1.23e+4", "NaN", "24.2"]
array.toFloat(arr: arr)// Returns [12.0, 1.2300, NaN, 24.2]
```

View File

@ -0,0 +1,74 @@
---
title: array.toInt() function
description: >
`array.toInt()` converts all values in an array to integers.
menu:
flux_0_x_ref:
name: array.toInt
parent: experimental/array
identifier: experimental/array/toInt
weight: 201
flux/v0.x/tags: [type-conversions]
introduced: 0.184.0
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L279-L279
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`array.toInt()` converts all values in an array to integers.
#### Supported array types and behaviors
| Array type | Returned array values |
| :----------- | :----------------------------------------- |
| `[bool]` | 1 (true) or 0 (false) |
| `[duration]` | Number of nanoseconds in the duration |
| `[float]` | Value truncated at the decimal |
| `[string]` | Integer equivalent of the numeric string |
| `[time]` | Equivalent nanosecond epoch timestamp |
| `[uint]` | Integer equivalent of the unsigned integer |
##### Function type signature
```js
(<-arr: [A]) => [int]
```
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
## Parameters
### arr
Array of values to convert. Default is the piped-forward array (`<-`).
## Examples
### Convert an array of floats to integers
```js
import "experimental/array"
arr = [12.1, 24.2, 36.3, 48.4]
array.toInt(arr: arr)// Returns [12, 24, 36, 48]
```

View File

@ -0,0 +1,72 @@
---
title: array.toString() function
description: >
`array.toString()` converts all values in an array to strings.
menu:
flux_0_x_ref:
name: array.toString
parent: experimental/array
identifier: experimental/array/toString
weight: 201
flux/v0.x/tags: [type-conversions]
introduced: 0.184.0
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L311-L311
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`array.toString()` converts all values in an array to strings.
#### Supported array types
- `[bool]`
- `[duration]`
- `[float]`
- `[int]`
- `[time]`
- `[uint]`
##### Function type signature
```js
(<-arr: [A]) => [string]
```
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
## Parameters
### arr
Array of values to convert. Default is the piped-forward array (`<-`).
## Examples
### Convert an array of floats to strings
```js
import "experimental/array"
arr = [12.0, 1.23, NaN, 24.2]
array.toString(arr: arr)// Returns ["12.0", "1.2300", "NaN", "24.2"]
```

View File

@ -0,0 +1,70 @@
---
title: array.toTime() function
description: >
`array.toTime()` converts all values in an array to times.
menu:
flux_0_x_ref:
name: array.toTime
parent: experimental/array
identifier: experimental/array/toTime
weight: 201
flux/v0.x/tags: [type-conversions]
introduced: 0.184.0
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L341-L341
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`array.toTime()` converts all values in an array to times.
#### Supported array types
- `[int]` (parsed as nanosecond epoch timestamps)
- `[string]` with values that use [time literal](/flux/v0.x/data-types/basic/time/#time-syntax)
representation (RFC3339 timestamps).
- `[uint]` (parsed as nanosecond epoch timestamps)
##### Function type signature
```js
(<-arr: [A]) => [time]
```
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
## Parameters
### arr
Array of values to convert. Default is the piped-forward array (`<-`).
## Examples
### Convert an array of integers to time values
```js
import "experimental/array"
arr = [1640995200000000000, 1643673600000000000, 1646092800000000000]
array.toTime(arr: arr)// Returns [2022-01-01T00:00:00Z, 2022-02-01T00:00:00Z, 2022-03-01T00:00:00Z]
```

View File

@ -0,0 +1,74 @@
---
title: array.toUInt() function
description: >
`array.toUInt()` converts all values in an array to unsigned integers.
menu:
flux_0_x_ref:
name: array.toUInt
parent: experimental/array
identifier: experimental/array/toUInt
weight: 201
flux/v0.x/tags: [type-conversions]
introduced: 0.184.0
---
<!------------------------------------------------------------------------------
IMPORTANT: This page was generated from comments in the Flux source code. Any
edits made directly to this page will be overwritten the next time the
documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/array/array.flux#L375-L375
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
------------------------------------------------------------------------------->
`array.toUInt()` converts all values in an array to unsigned integers.
#### Supported array types and behaviors
| Array type | Returned array values |
| :----------- | :----------------------------------------- |
| `[bool]` | 1 (true) or 0 (false) |
| `[duration]` | Number of nanoseconds in the duration |
| `[float]` | Value truncated at the decimal |
| `[int]` | Unsigned integer equivalent of the integer |
| `[string]` | Integer equivalent of the numeric string |
| `[time]` | Equivalent nanosecond epoch timestamp |
##### Function type signature
```js
(<-arr: [A]) => [uint]
```
{{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}}
## Parameters
### arr
Array of values to convert. Default is the piped-forward array (`<-`).
## Examples
### Convert an array of floats to usigned integers
```js
import "experimental/array"
arr = [-12.1, 24.2, -36.3, 48.4]
array.toInt(arr: arr)// Returns [18446744073709551604, 24, 18446744073709551580, 48]
```

View File

@ -20,7 +20,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L982-L985
https://github.com/influxdata/flux/blob/master/stdlib/experimental/geo/geo.flux#L1008-L1011
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -52,7 +52,7 @@ Default is `["id","tid"]`.
Columns to order results by. Default is `["_time"]`.
Sort precedence is determined by list order (left to right).
### tables
@ -63,6 +63,9 @@ Input data. Default is piped-forward data (`<-`).
## Examples
- [Group geotemporal data into tracks](#group-geotemporal-data-into-tracks)
- [Group geotemporal data into tracks and sort by specified columns](#group-geotemporal-data-into-tracks-and-sort-by-specified-columns)
### Group geotemporal data into tracks
```js
@ -104,3 +107,45 @@ data
{{% /expand %}}
{{< /expand-wrapper >}}
### Group geotemporal data into tracks and sort by specified columns
```js
import "experimental/geo"
data
|> geo.asTracks(orderBy: ["lat", "lon"])
```
{{< expand-wrapper >}}
{{% expand "View example input and ouput" %}}
#### Input data
| _time | id | lat | lon |
| -------------------- | ----- | -------- | -------- |
| 2021-01-01T00:00:00Z | a213b | 14.01433 | -14.5464 |
| 2021-01-02T01:00:00Z | a213b | 13.9228 | -13.3338 |
| 2021-01-03T02:00:00Z | a213b | 15.08433 | -12.0433 |
| 2021-01-01T00:00:00Z | b546c | 14.01433 | 39.7515 |
| 2021-01-02T01:00:00Z | b546c | 13.9228 | 38.3527 |
| 2021-01-03T02:00:00Z | b546c | 15.08433 | 36.9978 |
#### Output data
| _time | *id | lat | lon |
| -------------------- | ----- | -------- | -------- |
| 2021-01-02T01:00:00Z | a213b | 13.9228 | -13.3338 |
| 2021-01-01T00:00:00Z | a213b | 14.01433 | -14.5464 |
| 2021-01-03T02:00:00Z | a213b | 15.08433 | -12.0433 |
| _time | *id | lat | lon |
| -------------------- | ----- | -------- | ------- |
| 2021-01-02T01:00:00Z | b546c | 13.9228 | 38.3527 |
| 2021-01-01T00:00:00Z | b546c | 14.01433 | 39.7515 |
| 2021-01-03T02:00:00Z | b546c | 15.08433 | 36.9978 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -133,7 +133,7 @@ array.from(rows: [{name: data.name, age: data.age}])
| name | age |
| --------- | ---- |
| nathaniel | 30 |
| nathaniel | 60 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -78,22 +78,23 @@ requests.peek(response: requests.get(url: "https://api.agify.io", params: ["name
#### Output data
| body | duration | headers | statusCode |
| ----------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| {"name":"natalie","age":34,"count":20959} | 100000000 | [
Access-Control-Allow-Headers: Content-Type, X-Genderize-Source,
Access-Control-Allow-Methods: GET,
| body | duration | headers | statusCode |
| ----------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| {"age":48,"count":25082,"name":"natalie"} | 100000000 | [
Access-Control-Allow-Credentials: true,
Access-Control-Allow-Origin: *,
Access-Control-Expose-Headers: x-rate-limit-limit,x-rate-limit-remaining,x-rate-limit-reset,
Cache-Control: max-age=0, private, must-revalidate,
Connection: keep-alive,
Content-Length: 41,
Content-Type: application/json; charset=utf-8,
Date: Mon, 12 Sep 2022 19:26:11 GMT,
Etag: W/"29-klDahUESBLxHyQ7NiaetCn2CvCI",
Date: Wed, 21 Sep 2022 10:08:38 GMT,
Server: nginx/1.16.1,
X-Rate-Limit-Limit: 1000,
X-Rate-Limit-Remaining: 998,
X-Rate-Reset: 16429
] | 200 |
X-Rate-Limit-Reset: 49882,
X-Request-Id: FxbYSI-0Y_v6ACsAkbHS
] | 200 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -107,44 +107,44 @@ data
| _time | _value |
| -------------------- | ------------------- |
| 2022-09-12T19:23:30Z | 10.56555566168836 |
| 2022-09-12T19:23:40Z | -29.76098586714259 |
| 2022-09-12T19:23:50Z | -67.50435038579738 |
| 2022-09-12T19:24:00Z | -16.758669047964453 |
| 2022-09-12T19:24:10Z | -47.25865245658065 |
| 2022-09-12T19:24:20Z | 66.16082461651365 |
| 2022-09-12T19:24:30Z | -0.9179216017921821 |
| 2022-09-12T19:24:40Z | -56.89169240573004 |
| 2022-09-12T19:24:50Z | 11.358605472976624 |
| 2022-09-12T19:25:00Z | 28.71147881415803 |
| 2022-09-12T19:25:10Z | -30.928830759588756 |
| 2022-09-12T19:25:20Z | -22.411848631056067 |
| 2022-09-12T19:25:30Z | 17.05503606764129 |
| 2022-09-12T19:25:40Z | 9.834382683760559 |
| 2022-09-12T19:25:50Z | -12.62058579127679 |
| 2022-09-12T19:26:00Z | -44.44668391211515 |
| 2022-09-21T10:05:50Z | 10.56555566168836 |
| 2022-09-21T10:06:00Z | -29.76098586714259 |
| 2022-09-21T10:06:10Z | -67.50435038579738 |
| 2022-09-21T10:06:20Z | -16.758669047964453 |
| 2022-09-21T10:06:30Z | -47.25865245658065 |
| 2022-09-21T10:06:40Z | 66.16082461651365 |
| 2022-09-21T10:06:50Z | -0.9179216017921821 |
| 2022-09-21T10:07:00Z | -56.89169240573004 |
| 2022-09-21T10:07:10Z | 11.358605472976624 |
| 2022-09-21T10:07:20Z | 28.71147881415803 |
| 2022-09-21T10:07:30Z | -30.928830759588756 |
| 2022-09-21T10:07:40Z | -22.411848631056067 |
| 2022-09-21T10:07:50Z | 17.05503606764129 |
| 2022-09-21T10:08:00Z | 9.834382683760559 |
| 2022-09-21T10:08:10Z | -12.62058579127679 |
| 2022-09-21T10:08:20Z | -44.44668391211515 |
#### Output data
| _time | _value |
| -------------------- | ------------------- |
| 2022-09-12T19:23:30Z | 10.56555566168836 |
| 2022-09-12T19:23:40Z | -29.76098586714259 |
| 2022-09-12T19:23:50Z | -67.50435038579738 |
| 2022-09-12T19:24:00Z | -16.758669047964453 |
| 2022-09-12T19:24:10Z | -47.25865245658065 |
| 2022-09-12T19:24:20Z | 66.16082461651365 |
| 2022-09-12T19:24:30Z | -0.9179216017921821 |
| 2022-09-12T19:24:40Z | -56.89169240573004 |
| 2022-09-12T19:24:50Z | 11.358605472976624 |
| 2022-09-12T19:25:00Z | 28.71147881415803 |
| 2022-09-12T19:25:10Z | -30.928830759588756 |
| 2022-09-12T19:25:20Z | -22.411848631056067 |
| 2022-09-12T19:25:30Z | 17.05503606764129 |
| 2022-09-12T19:25:40Z | 9.834382683760559 |
| 2022-09-12T19:25:50Z | -12.62058579127679 |
| 2022-09-12T19:26:00Z | -44.44668391211515 |
| 2022-09-21T10:05:50Z | 10.56555566168836 |
| 2022-09-21T10:06:00Z | -29.76098586714259 |
| 2022-09-21T10:06:10Z | -67.50435038579738 |
| 2022-09-21T10:06:20Z | -16.758669047964453 |
| 2022-09-21T10:06:30Z | -47.25865245658065 |
| 2022-09-21T10:06:40Z | 66.16082461651365 |
| 2022-09-21T10:06:50Z | -0.9179216017921821 |
| 2022-09-21T10:07:00Z | -56.89169240573004 |
| 2022-09-21T10:07:10Z | 11.358605472976624 |
| 2022-09-21T10:07:20Z | 28.71147881415803 |
| 2022-09-21T10:07:30Z | -30.928830759588756 |
| 2022-09-21T10:07:40Z | -22.411848631056067 |
| 2022-09-21T10:07:50Z | 17.05503606764129 |
| 2022-09-21T10:08:00Z | 9.834382683760559 |
| 2022-09-21T10:08:10Z | -12.62058579127679 |
| 2022-09-21T10:08:20Z | -44.44668391211515 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -166,43 +166,43 @@ data
| _time | _value |
| -------------------- | ------------------- |
| 2022-09-12T19:23:30Z | 10.56555566168836 |
| 2022-09-12T19:23:40Z | -29.76098586714259 |
| 2022-09-12T19:23:50Z | -67.50435038579738 |
| 2022-09-12T19:24:00Z | -16.758669047964453 |
| 2022-09-12T19:24:10Z | -47.25865245658065 |
| 2022-09-12T19:24:20Z | 66.16082461651365 |
| 2022-09-12T19:24:30Z | -0.9179216017921821 |
| 2022-09-12T19:24:40Z | -56.89169240573004 |
| 2022-09-12T19:24:50Z | 11.358605472976624 |
| 2022-09-12T19:25:00Z | 28.71147881415803 |
| 2022-09-12T19:25:10Z | -30.928830759588756 |
| 2022-09-12T19:25:20Z | -22.411848631056067 |
| 2022-09-12T19:25:30Z | 17.05503606764129 |
| 2022-09-12T19:25:40Z | 9.834382683760559 |
| 2022-09-12T19:25:50Z | -12.62058579127679 |
| 2022-09-12T19:26:00Z | -44.44668391211515 |
| 2022-09-21T10:05:50Z | 10.56555566168836 |
| 2022-09-21T10:06:00Z | -29.76098586714259 |
| 2022-09-21T10:06:10Z | -67.50435038579738 |
| 2022-09-21T10:06:20Z | -16.758669047964453 |
| 2022-09-21T10:06:30Z | -47.25865245658065 |
| 2022-09-21T10:06:40Z | 66.16082461651365 |
| 2022-09-21T10:06:50Z | -0.9179216017921821 |
| 2022-09-21T10:07:00Z | -56.89169240573004 |
| 2022-09-21T10:07:10Z | 11.358605472976624 |
| 2022-09-21T10:07:20Z | 28.71147881415803 |
| 2022-09-21T10:07:30Z | -30.928830759588756 |
| 2022-09-21T10:07:40Z | -22.411848631056067 |
| 2022-09-21T10:07:50Z | 17.05503606764129 |
| 2022-09-21T10:08:00Z | 9.834382683760559 |
| 2022-09-21T10:08:10Z | -12.62058579127679 |
| 2022-09-21T10:08:20Z | -44.44668391211515 |
#### Output data
| _time | _value |
| -------------------- | ------------------- |
| 2022-09-12T19:23:30Z | 10.56555566168836 |
| 2022-09-12T19:23:50Z | -67.50435038579738 |
| 2022-09-12T19:24:00Z | -16.758669047964453 |
| 2022-09-12T19:24:10Z | -47.25865245658065 |
| 2022-09-12T19:24:20Z | 66.16082461651365 |
| 2022-09-12T19:24:30Z | -0.9179216017921821 |
| 2022-09-12T19:24:40Z | -56.89169240573004 |
| 2022-09-12T19:24:50Z | 11.358605472976624 |
| 2022-09-12T19:25:00Z | 28.71147881415803 |
| 2022-09-12T19:25:10Z | -30.928830759588756 |
| 2022-09-12T19:25:20Z | -22.411848631056067 |
| 2022-09-12T19:25:30Z | 17.05503606764129 |
| 2022-09-12T19:25:40Z | 9.834382683760559 |
| 2022-09-12T19:25:50Z | -12.62058579127679 |
| 2022-09-12T19:26:00Z | -44.44668391211515 |
| 2022-09-21T10:05:50Z | 10.56555566168836 |
| 2022-09-21T10:06:10Z | -67.50435038579738 |
| 2022-09-21T10:06:20Z | -16.758669047964453 |
| 2022-09-21T10:06:30Z | -47.25865245658065 |
| 2022-09-21T10:06:40Z | 66.16082461651365 |
| 2022-09-21T10:06:50Z | -0.9179216017921821 |
| 2022-09-21T10:07:00Z | -56.89169240573004 |
| 2022-09-21T10:07:10Z | 11.358605472976624 |
| 2022-09-21T10:07:20Z | 28.71147881415803 |
| 2022-09-21T10:07:30Z | -30.928830759588756 |
| 2022-09-21T10:07:40Z | -22.411848631056067 |
| 2022-09-21T10:07:50Z | 17.05503606764129 |
| 2022-09-21T10:08:00Z | 9.834382683760559 |
| 2022-09-21T10:08:10Z | -12.62058579127679 |
| 2022-09-21T10:08:20Z | -44.44668391211515 |
{{% /expand %}}
{{< /expand-wrapper >}}
@ -224,42 +224,42 @@ data
| _time | _value |
| -------------------- | ------------------- |
| 2022-09-12T19:23:30Z | 10.56555566168836 |
| 2022-09-12T19:23:40Z | -29.76098586714259 |
| 2022-09-12T19:23:50Z | -67.50435038579738 |
| 2022-09-12T19:24:00Z | -16.758669047964453 |
| 2022-09-12T19:24:10Z | -47.25865245658065 |
| 2022-09-12T19:24:20Z | 66.16082461651365 |
| 2022-09-12T19:24:30Z | -0.9179216017921821 |
| 2022-09-12T19:24:40Z | -56.89169240573004 |
| 2022-09-12T19:24:50Z | 11.358605472976624 |
| 2022-09-12T19:25:00Z | 28.71147881415803 |
| 2022-09-12T19:25:10Z | -30.928830759588756 |
| 2022-09-12T19:25:20Z | -22.411848631056067 |
| 2022-09-12T19:25:30Z | 17.05503606764129 |
| 2022-09-12T19:25:40Z | 9.834382683760559 |
| 2022-09-12T19:25:50Z | -12.62058579127679 |
| 2022-09-12T19:26:00Z | -44.44668391211515 |
| 2022-09-21T10:05:50Z | 10.56555566168836 |
| 2022-09-21T10:06:00Z | -29.76098586714259 |
| 2022-09-21T10:06:10Z | -67.50435038579738 |
| 2022-09-21T10:06:20Z | -16.758669047964453 |
| 2022-09-21T10:06:30Z | -47.25865245658065 |
| 2022-09-21T10:06:40Z | 66.16082461651365 |
| 2022-09-21T10:06:50Z | -0.9179216017921821 |
| 2022-09-21T10:07:00Z | -56.89169240573004 |
| 2022-09-21T10:07:10Z | 11.358605472976624 |
| 2022-09-21T10:07:20Z | 28.71147881415803 |
| 2022-09-21T10:07:30Z | -30.928830759588756 |
| 2022-09-21T10:07:40Z | -22.411848631056067 |
| 2022-09-21T10:07:50Z | 17.05503606764129 |
| 2022-09-21T10:08:00Z | 9.834382683760559 |
| 2022-09-21T10:08:10Z | -12.62058579127679 |
| 2022-09-21T10:08:20Z | -44.44668391211515 |
#### Output data
| _time | _value |
| -------------------- | ------------------- |
| 2022-09-12T19:23:30Z | 10.56555566168836 |
| 2022-09-12T19:23:50Z | -67.50435038579738 |
| 2022-09-12T19:24:00Z | -16.758669047964453 |
| 2022-09-12T19:24:10Z | -47.25865245658065 |
| 2022-09-12T19:24:20Z | 66.16082461651365 |
| 2022-09-12T19:24:30Z | -0.9179216017921821 |
| 2022-09-12T19:24:40Z | -56.89169240573004 |
| 2022-09-12T19:24:50Z | 11.358605472976624 |
| 2022-09-12T19:25:00Z | 28.71147881415803 |
| 2022-09-12T19:25:10Z | -30.928830759588756 |
| 2022-09-12T19:25:20Z | -22.411848631056067 |
| 2022-09-12T19:25:30Z | 17.05503606764129 |
| 2022-09-12T19:25:40Z | 9.834382683760559 |
| 2022-09-12T19:26:00Z | -44.44668391211515 |
| 2022-09-21T10:05:50Z | 10.56555566168836 |
| 2022-09-21T10:06:10Z | -67.50435038579738 |
| 2022-09-21T10:06:20Z | -16.758669047964453 |
| 2022-09-21T10:06:30Z | -47.25865245658065 |
| 2022-09-21T10:06:40Z | 66.16082461651365 |
| 2022-09-21T10:06:50Z | -0.9179216017921821 |
| 2022-09-21T10:07:00Z | -56.89169240573004 |
| 2022-09-21T10:07:10Z | 11.358605472976624 |
| 2022-09-21T10:07:20Z | 28.71147881415803 |
| 2022-09-21T10:07:30Z | -30.928830759588756 |
| 2022-09-21T10:07:40Z | -22.411848631056067 |
| 2022-09-21T10:07:50Z | 17.05503606764129 |
| 2022-09-21T10:08:00Z | 9.834382683760559 |
| 2022-09-21T10:08:20Z | -44.44668391211515 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -130,7 +130,7 @@ array.from(rows: [{name: data.name, age: data.age}])
| name | age |
| --------- | ---- |
| nathaniel | 30 |
| nathaniel | 60 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -73,22 +73,23 @@ requests.peek(response: requests.get(url: "https://api.agify.io", params: ["name
#### Output data
| body | duration | headers | statusCode |
| ----------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| {"name":"natalie","age":34,"count":20959} | 100000000 | [
Access-Control-Allow-Headers: Content-Type, X-Genderize-Source,
Access-Control-Allow-Methods: GET,
| body | duration | headers | statusCode |
| ----------------------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| {"age":48,"count":25082,"name":"natalie"} | 100000000 | [
Access-Control-Allow-Credentials: true,
Access-Control-Allow-Origin: *,
Access-Control-Expose-Headers: x-rate-limit-limit,x-rate-limit-remaining,x-rate-limit-reset,
Cache-Control: max-age=0, private, must-revalidate,
Connection: keep-alive,
Content-Length: 41,
Content-Type: application/json; charset=utf-8,
Date: Mon, 12 Sep 2022 19:26:13 GMT,
Etag: W/"29-klDahUESBLxHyQ7NiaetCn2CvCI",
Date: Wed, 21 Sep 2022 10:08:39 GMT,
Server: nginx/1.16.1,
X-Rate-Limit-Limit: 1000,
X-Rate-Limit-Remaining: 996,
X-Rate-Reset: 16427
] | 200 |
X-Rate-Limit-Reset: 49881,
X-Request-Id: FxbYSObVA-veXYEAkbRi
] | 200 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -189,12 +189,12 @@ requests.peek(response: response)
Cache-Control: max-age=604800,
Content-Length: 1256,
Content-Type: text/html; charset=UTF-8,
Date: Mon, 12 Sep 2022 19:26:13 GMT,
Date: Wed, 21 Sep 2022 10:08:40 GMT,
Etag: "3147526947",
Expires: Mon, 19 Sep 2022 19:26:13 GMT,
Expires: Wed, 28 Sep 2022 10:08:40 GMT,
Last-Modified: Thu, 17 Oct 2019 07:18:26 GMT,
Server: EOS (vny/0451)
] | 97664868 |
Server: EOS (vny/0453)
] | 147139602 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3852-L3875
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3866-L3889
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3116-L3116
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3130-L3130
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4122-L4124
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4136-L4138
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3134-L3134
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3148-L3148
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3539-L3539
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3553-L3553
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3677-L3679
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3691-L3693
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3512-L3512
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3526-L3526
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -23,7 +23,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4439-L4445
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4453-L4459
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3184-L3184
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3198-L3198
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -117,12 +117,12 @@ sampledata.int()
| 2021-01-01T00:00:40Z | 13 | t2 |
| 2021-01-01T00:00:50Z | 1 | t2 |
| _time | _value | *tag |
| ------ | ------- | ---- |
#### Output data
| _time | _value | *tag |
| ------ | ------- | ---- |
| _time | _value | *tag |
| -------------------- | ------- | ---- |
| 2021-01-01T00:00:00Z | 19 | t2 |

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3031-L3034
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3045-L3048
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3068-L3071
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3082-L3085
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3228-L3228
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3242-L3242
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2970-L2970
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2984-L2984
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2997-L2997
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3011-L3011
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4207-L4215
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4221-L4229
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4242-L4250
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4256-L4264
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4170-L4180
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4184-L4194
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3902-L3905
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3916-L3919
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3288-L3288
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3302-L3302
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4472-L4475
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4486-L4489
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3562-L3562
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3576-L3576
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3585-L3585
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3599-L3599
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3608-L3608
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3622-L3622
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4314-L4322
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4328-L4336
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4349-L4357
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4363-L4371
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4277-L4287
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4291-L4301
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -59,7 +59,7 @@ Input data. Default is piped-forward data (`<-`).
## Examples
### Return the row with the maximum value
### Return the row with the maximum value from each input table
```js
import "sampledata"

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3965-L3967
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3979-L3981
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3708-L3708
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3722-L3722
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -61,7 +61,7 @@ Durations are relative to `now()`.
Latest time to include in results. Default is `now()`.
Results _exclude_ rows with `_time` values that match the specified start time.
Results _exclude_ rows with `_time` values that match the specified stop time.
Use a relative duration, absolute time, or integer (Unix timestamp in seconds).
For example, `-1h`, `2019-08-28T22:00:00Z`, or `1567029600`.
Durations are relative to `now()`.

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2264-L2268
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2278-L2282
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -30,7 +30,7 @@ Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
`rename()` renames columns in a table.
If a column in group key is renamed, the column name in the group key is updated.
If a column in the group key is renamed, the column name in the group key is updated.
##### Function type signature
@ -64,10 +64,11 @@ Input data. Default is piped-forward data (`<-`).
## Examples
- [Map column names to new column names](#map-column-names-to-new-column-names)
- [Explicitly map column names to new column names](#explicitly-map-column-names-to-new-column-names)
- [Rename columns using a function](#rename-columns-using-a-function)
- [Conditionally rename columns using a function](#conditionally-rename-columns-using-a-function)
### Map column names to new column names
### Explicitly map column names to new column names
```js
import "sampledata"
@ -180,3 +181,66 @@ sampledata.int()
{{% /expand %}}
{{< /expand-wrapper >}}
### Conditionally rename columns using a function
```js
import "sampledata"
sampledata.int()
|> rename(
fn: (column) => {
_newColumnName = if column =~ /^_/ then "${column} (Reserved)" else column
return _newColumnName
},
)
```
{{< expand-wrapper >}}
{{% expand "View example input and ouput" %}}
#### Input data
| _time | _value | *tag |
| -------------------- | ------- | ---- |
| 2021-01-01T00:00:00Z | -2 | t1 |
| 2021-01-01T00:00:10Z | 10 | t1 |
| 2021-01-01T00:00:20Z | 7 | t1 |
| 2021-01-01T00:00:30Z | 17 | t1 |
| 2021-01-01T00:00:40Z | 15 | t1 |
| 2021-01-01T00:00:50Z | 4 | t1 |
| _time | _value | *tag |
| -------------------- | ------- | ---- |
| 2021-01-01T00:00:00Z | 19 | t2 |
| 2021-01-01T00:00:10Z | 4 | t2 |
| 2021-01-01T00:00:20Z | -3 | t2 |
| 2021-01-01T00:00:30Z | 19 | t2 |
| 2021-01-01T00:00:40Z | 13 | t2 |
| 2021-01-01T00:00:50Z | 1 | t2 |
#### Output data
| _time (Reserved) | _value (Reserved) | *tag |
| -------------------- | ------------------ | ---- |
| 2021-01-01T00:00:00Z | -2 | t1 |
| 2021-01-01T00:00:10Z | 10 | t1 |
| 2021-01-01T00:00:20Z | 7 | t1 |
| 2021-01-01T00:00:30Z | 17 | t1 |
| 2021-01-01T00:00:40Z | 15 | t1 |
| 2021-01-01T00:00:50Z | 4 | t1 |
| _time (Reserved) | _value (Reserved) | *tag |
| -------------------- | ------------------ | ---- |
| 2021-01-01T00:00:00Z | 19 | t2 |
| 2021-01-01T00:00:10Z | 4 | t2 |
| 2021-01-01T00:00:20Z | -3 | t2 |
| 2021-01-01T00:00:30Z | 19 | t2 |
| 2021-01-01T00:00:40Z | 13 | t2 |
| 2021-01-01T00:00:50Z | 1 | t2 |
{{% /expand %}}
{{< /expand-wrapper >}}

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2298-L2300
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2312-L2314
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2327-L2327
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2341-L2341
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2420-L2420
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2434-L2434
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2477-L2477
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2491-L2491
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md
@ -50,7 +50,7 @@ When `desc: true`, null values are first in the sort order.
### columns
List of columns to sort by. Default is ["_value"].
List of columns to sort by. Default is `["_value"]`.
Sort precedence is determined by list order (left to right).

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2443-L2443
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2457-L2457
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3997-L3999
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4011-L4013
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4048-L4056
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4062-L4070
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2546-L2556
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2560-L2570
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2588-L2591
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2602-L2605
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3325-L3325
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3339-L3339
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2613-L2613
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2627-L2627
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2927-L2930
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2941-L2944
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2364-L2364
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2378-L2378
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3367-L3367
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3381-L3381
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4402-L4407
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4416-L4421
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2398-L2398
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2412-L2412
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3638-L3648
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3652-L3662
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4749-L4749
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4763-L4763
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4804-L4804
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4818-L4818
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4722-L4722
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4736-L4736
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4638-L4638
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4652-L4652
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4091-L4093
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4105-L4107
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4589-L4589
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4603-L4603
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4780-L4780
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4794-L4794
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4687-L4687
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4701-L4701
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4512-L4520
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4526-L4534
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2661-L2667
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2675-L2681
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -22,7 +22,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4566-L4568
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L4580-L4582
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3416-L3416
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L3430-L3430
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2724-L2724
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2738-L2738
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2749-L2749
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2763-L2763
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2846-L2867
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2860-L2881
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md

View File

@ -21,7 +21,7 @@ documentation is generated.
To make updates to this documentation, update the function comments above the
function definition in the Flux source code:
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2897-L2897
https://github.com/influxdata/flux/blob/master/stdlib/universe/universe.flux#L2911-L2911
Contributing to Flux: https://github.com/influxdata/flux#contributing
Fluxdoc syntax: https://github.com/influxdata/flux/blob/master/docs/fluxdoc.md