Skip to content

Commit eacca6e

Browse files
committed
Update cidrmatch doc: add IP as an acceptable parameter type
Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
1 parent 8a305b4 commit eacca6e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

core/src/main/java/org/opensearch/sql/expression/function/udf/ip/CidrMatchFunction.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
*
2828
* <ul>
2929
* <li>(STRING, STRING) -> BOOLEAN
30+
* <li>(IP, STRING) -> BOOLEAN
3031
* </ul>
3132
*/
3233
public class CidrMatchFunction extends ImplementorUDF {

docs/user/ppl/functions/ip.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Description
1616

1717
Usage: `cidrmatch(ip, cidr)` checks if `ip` is within the specified `cidr` range.
1818

19-
Argument type: STRING, STRING
19+
Argument type: STRING/IP, STRING
2020

2121
Return type: BOOLEAN
2222

0 commit comments

Comments
 (0)