Skip to content

Commit c3e18d5

Browse files
committed
Hash functions
1 parent 7cf28a9 commit c3e18d5

File tree

18 files changed

+312
-3
lines changed

18 files changed

+312
-3
lines changed

docs/reference/esql/functions/description/md5.asciidoc

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/definition/md5.json

Lines changed: 34 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/kibana/docs/md5.md

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/layout/md5.asciidoc

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/parameters/md5.asciidoc

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/esql/functions/signature/md5.svg

Lines changed: 1 addition & 0 deletions
Loading

docs/reference/esql/functions/string-functions.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ include::layout/left.asciidoc[]
4343
include::layout/length.asciidoc[]
4444
include::layout/locate.asciidoc[]
4545
include::layout/ltrim.asciidoc[]
46+
include::layout/md5.asciidoc[]
4647
include::layout/repeat.asciidoc[]
4748
include::layout/replace.asciidoc[]
4849
include::layout/reverse.asciidoc[]

docs/reference/esql/functions/types/md5.asciidoc

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/qa/testFixtures/src/main/resources/hash.csv-spec

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,12 @@ FROM sample_data
103103
count:long | hash(md5, message):keyword
104104
3 | 2e92ae79ff32b37fee4368a594792183
105105
;
106+
107+
md5Hash
108+
required_capability: short_hash_functions
109+
110+
ROW input="input" | EVAL md5 = hash("md5", input);
111+
112+
input:keyword | md5:keyword
113+
input | a43c1b0aa53a0c908810c06ab1ff3967
114+
;

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/action/EsqlCapabilities.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ public enum Cap {
453453
* Hash function
454454
*/
455455
HASH_FUNCTION,
456+
/**
457+
* Hash functions such as MD5
458+
*/
459+
SHORT_HASH_FUNCTIONS,
456460

457461
/**
458462
* Don't optimize CASE IS NOT NULL function by not requiring the fields to be not null as well.

0 commit comments

Comments
 (0)