soumyava commented on code in PR #15531:
URL: https://github.com/apache/druid/pull/15531#discussion_r1423120922
##########
docs/querying/math-expr.md:
##########
@@ -192,7 +192,7 @@ See javadoc of java.lang.Math for detailed explanation for
each function.
| array_set_add_all(arr1,arr2) | combines the unique set of elements of 2
arrays, the resulting array type determined by the type of the first array |
| array_slice(arr,start,end) | return the subarray of arr from the 0 based
index start(inclusive) to end(exclusive), or `null`, if start is less than 0,
greater than length of arr or less than end|
| array_to_string(arr,str) | joins all elements of arr by the delimiter
specified by str |
-| string_to_array(str1,str2) | splits str1 into an array on the delimiter
specified by str2 |
+| string_to_array(str1,str2) | splits str1 into an array on the delimiter
specified by str2, which is a regular expression |
Review Comment:
QQ. Is str2 always a regex ? Or can it can be a delimiter like `,` or `|`. I
see that I can run `select STRING_TO_ARRAY('a,b,c',',')` where str2 is not a
regular expression. If so can we modify this as `splits str1 into an array on
the delimiter specified by str2, which can be a regular expression`
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]