gianm commented on a change in pull request #9893:
URL: https://github.com/apache/druid/pull/9893#discussion_r428758597



##########
File path: docs/querying/sql.md
##########
@@ -322,17 +322,18 @@ String functions accept strings, and return a type 
appropriate to the function.
 |`LOWER(expr)`|Returns expr in all lowercase.|
 |`PARSE_LONG(string[, radix])`|Parses a string into a long (BIGINT) with the 
given radix, or 10 (decimal) if a radix is not provided.|
 |`POSITION(needle IN haystack [FROM fromIndex])`|Returns the index of needle 
within haystack, with indexes starting from 1. The search will begin at 
fromIndex, or 1 if fromIndex is not specified. If the needle is not found, 
returns 0.|
-|`REGEXP_EXTRACT(expr, pattern, [index])`|Apply regular expression pattern and 
extract a capture group, or null if there is no match. If index is unspecified 
or zero, returns the substring that matched the pattern.|
+|`REGEXP_EXTRACT(expr, pattern, [index])`|Apply regular expression `pattern` 
to `expr` and extract a capture group, or `NULL` if there is no match. If index 
is unspecified or zero, returns the substring that matched the pattern. The 
pattern must match starting at the beginning of `expr`, but does not need to 
match the entire string. Note: when `druid.generic.useDefaultValueForNull = 
true`, it is not possible to differentiate an empty-string match from a 
non-match (both will return `NULL`).|
+|`REGEXP_LIKE(expr, pattern)`|Returns whether `expr` matches regular 
expression `pattern`. The pattern must match starting at the beginning of 
`expr`, but does not need to match the entire string. Especially useful in 
WHERE clauses.|

Review comment:
       Added both notes.




----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to