|
@@ -126,13 +126,13 @@ Examples:
|
|
|
|
|
|
## Conversion Functions
|
|
## Conversion Functions
|
|
|
|
|
|
-| Function | Example | Description |
|
|
|
|
-|------------------|----------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
-| cast | cast(col, "bigint") | Converts a value from one data type to another. The supported types includes: bigint, float, string, boolean and datetime. |
|
|
|
|
-| chr | chr(col1) | Returns the ASCII character that corresponds to the given Int argument |
|
|
|
|
-| encode | encode(col1, "base64") | Use the encode function to encode the payload, which potentially might be non-JSON data, into its string representation based on the encoding scheme. Currently, only "base64" encoding type is supported. |
|
|
|
|
-| trunc | trunc(dec, int) | Truncates the first argument to the number of Decimal places specified by the second argument. If the second argument is less than zero, it is set to zero. If the second argument is greater than 34, it is set to 34. Trailing zeroes are stripped from the result. |
|
|
|
|
-| object_construct | object_construct(key1, col, ...) | Return a struct type object/map constructed by the arguments. The arguments are series of key value pairs, thus the arguments count must be an odd number. The key must a string and the value can be of any type. |
|
|
|
|
|
|
+| Function | Example | Description |
|
|
|
|
+|------------------|----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
|
|
+| cast | cast(col, "bigint") | Converts a value from one data type to another. The supported types includes: bigint, float, string, boolean and datetime. |
|
|
|
|
+| chr | chr(col1) | Returns the ASCII character that corresponds to the given Int argument |
|
|
|
|
+| encode | encode(col1, "base64") | Use the encode function to encode the payload, which potentially might be non-JSON data, into its string representation based on the encoding scheme. Currently, only "base64" encoding type is supported. |
|
|
|
|
+| trunc | trunc(dec, int) | Truncates the first argument to the number of Decimal places specified by the second argument. If the second argument is less than zero, it is set to zero. If the second argument is greater than 34, it is set to 34. Trailing zeroes are stripped from the result. |
|
|
|
|
+| object_construct | object_construct(key1, col, ...) | Return a struct type object/map constructed by the arguments. The arguments are series of key value pairs, thus the arguments count must be an odd number. The key must a string and the value can be of any type. If the value is null, the key/value pair will not present in the final object. |
|
|
|
|
|
|
### Cast to datetime
|
|
### Cast to datetime
|
|
|
|
|