jon-wei commented on a change in pull request #7588: multi-value string column support for expressions URL: https://github.com/apache/incubator-druid/pull/7588#discussion_r290546787
########## File path: docs/content/misc/math-expr.md ########## @@ -146,3 +156,33 @@ See javadoc of java.lang.Math for detailed explanation for each function. |todegrees|todegrees(x) converts an angle measured in radians to an approximately equivalent angle measured in degrees| |toradians|toradians(x) converts an angle measured in degrees to an approximately equivalent angle measured in radians| |ulp|ulp(x) would return the size of an ulp of the argument x| + + +## Array Functions + +| function | description | +| --- | --- | +| `array_length(arr)` | returns length of array expression | +| `array_offset(arr,long)` | returns the array element at the 0 based index supplied, or null for an out of range index| +| `array_ordinal(arr,long)` | returns the array element at the 1 based index supplied, or null for an out of range index | +| `array_contains(arr,expr)` | returns true if the array contains the element specified by expr, or contains all elements specified by expr if expr is an array | +| `array_overlap(arr1,arr2)` | returns true if arr1 and arr2 have any elements in common | +| `array_offset_of(expr)` | returns the 0 based index of the first occurrence of expr in the array, or `null` if no matching elements exist in the array. | +| `array_ordinal_of(expr)` | returns the 1 based index of the first occurrence of expr in the array, or `null` if no matching elements exist in the array. | +| `array_append(arr1,expr)` | appends expr to arr Review comment: suggest mentioning for append and concat that the resulting array will have the type of the lhs array ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
