Skip to content

Commit

Permalink
introduce capability
Browse files Browse the repository at this point in the history
  • Loading branch information
idegtiarenko committed Dec 4, 2024
1 parent 2c83925 commit 644874f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
md5
required_capability: kql_function

ROW value = "test" | EVAL hash = hash("md5", value);

value:keyword | hash:keyword
test | 098f6bcd4621d373cade4e832627b4f6
;

sha256
required_capability: kql_function

ROW value = "test" | EVAL hash = hash("sha256", value);

value:keyword | hash:keyword
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,11 @@ public enum Cap {
*/
KQL_FUNCTION(Build.current().isSnapshot()),

/**
* Hash function
*/
HASH_FUNCTION(Build.current().isSnapshot()),

/**
* Don't optimize CASE IS NOT NULL function by not requiring the fields to be not null as well.
* https://github.com/elastic/elasticsearch/issues/112704
Expand Down

0 comments on commit 644874f

Please sign in to comment.