Supported in: Batch, Streaming
Cast expression to given type.
Expression categories: Cast, Popular
Type variable bounds: C accepts AnyType
Output type: C
Argument values:
a
a | Output |
---|---|
[ 12.3, 20.1 ] | [ 12.3, 20.1 ] |
Argument values:
a
a | Output |
---|---|
[ { date: 2020-01-01, foo: false, time: 2020-10-01T00:00:01Z, } ] | [{false, 2020-10-01 00:00:01, 2020-01-01}] |
Argument values:
a
a | Output |
---|---|
[ 12.3, 20.1 ] | [ 12.3, 20.1 ] |
Argument values:
a
a | Output |
---|---|
[ true, false ] | [true, false] |
Description: Casting string to long Argument values:
Output: 1234
Description: Casting long to string Argument values:
Output: 1234
Argument values:
a
a | Output |
---|---|
true | true |
false | false |
null | null |
Argument values:
a
a | Output |
---|---|
2020-01-01 | 2020-01-01 |
null | null |
Argument values:
a
a | Output |
---|---|
{ 1 -> true, 2 -> false, } | {1 -> true, 2 -> false} |
Argument values:
a
a | Output |
---|---|
[ [ true, false ], [ true ] ] | [[true, false], [true]] |
Argument values:
a
a | Output |
---|---|
{ foo -> { 1 -> true, 2 -> false, }, } | {foo -> {1 -> true, 2 -> false}} |
Argument values:
a
a | Output |
---|---|
{ a: { bar: false, foo: 1, }, } | {{1, false}} |
Description: Casting string to decimal Argument values:
Output: 1234
Argument values:
a
a | Output |
---|---|
1 | 1 |
1.0 | null |
null | null |
Argument values:
a
a | Output |
---|---|
1 | 1 |
1.0 | null |
null | null |
Argument values:
a
a | Output |
---|---|
{ bar: null, foo: 1, } | {1, null} |
Argument values:
a
a | Output |
---|---|
{ bar: false, foo: 1, } | {1, false} |
Argument values:
a
a | Output |
---|---|
[ true, null ] | [true, null] |
null | null |
Argument values:
a
a | Output |
---|---|
{ 1 -> null, 2 -> false, } | {1 -> null, 2 -> false} |
Argument values:
a
a | Output |
---|---|
null | null |