Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESQL Add esql hash function #117989

Merged
merged 44 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
39a2d17
test case
idegtiarenko Dec 4, 2024
a9ff454
dummy implementation
idegtiarenko Dec 4, 2024
5101864
simple implementation
idegtiarenko Dec 4, 2024
fabaabb
attempt to reuse MessageDigest
idegtiarenko Dec 4, 2024
33d5473
unit tests
idegtiarenko Dec 4, 2024
06a322a
update description
idegtiarenko Dec 4, 2024
2c83925
replace getBytes usage
idegtiarenko Dec 4, 2024
644874f
introduce capability
idegtiarenko Dec 4, 2024
b324f39
Update docs/changelog/117989.yaml
idegtiarenko Dec 4, 2024
514e1db
update functions counter
idegtiarenko Dec 4, 2024
052c247
fix required capability
idegtiarenko Dec 4, 2024
48d4dd1
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 4, 2024
1adfc89
additional test cases
idegtiarenko Dec 5, 2024
633a044
update spec
idegtiarenko Dec 5, 2024
f063055
move function definition
idegtiarenko Dec 5, 2024
062967f
update
idegtiarenko Dec 5, 2024
62f97c3
enable by default
idegtiarenko Dec 6, 2024
923f453
handle error cases
idegtiarenko Dec 6, 2024
9863fcc
make formatting a bit cheaper
idegtiarenko Dec 6, 2024
6f08e29
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 6, 2024
a22e2ad
fix yaml test
idegtiarenko Dec 6, 2024
bb8f73b
update corresponding test
idegtiarenko Dec 6, 2024
e03a7b3
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 6, 2024
2506a55
reorder
idegtiarenko Dec 6, 2024
dce7cd0
update docs
idegtiarenko Dec 6, 2024
8d76d16
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 6, 2024
9d3a44f
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 9, 2024
f471900
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 10, 2024
ed4f01f
use non lookup index in test
idegtiarenko Dec 11, 2024
c2811b7
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 11, 2024
99ad357
rename alg -> algorithm
idegtiarenko Dec 12, 2024
3abf208
more hash test cases
idegtiarenko Dec 12, 2024
0983786
cover folded literal case
idegtiarenko Dec 13, 2024
7b5a3ec
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 13, 2024
08eaee6
fix test
idegtiarenko Dec 13, 2024
bfab16b
additional cases
idegtiarenko Dec 13, 2024
8dfca90
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 13, 2024
be91871
update function count
idegtiarenko Dec 13, 2024
cd2df96
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 16, 2024
fb86d18
fix order
idegtiarenko Dec 16, 2024
edcf755
randomize input
idegtiarenko Dec 16, 2024
2c8f541
merge test scenario creation
idegtiarenko Dec 16, 2024
5ac4ae6
Merge branch 'main' into add_esql_hash
idegtiarenko Dec 18, 2024
c72e947
cleanup tests
idegtiarenko Dec 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/changelog/117989.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 117989
summary: ESQL Add esql hash function
area: ES|QL
type: enhancement
issues: []
5 changes: 5 additions & 0 deletions docs/reference/esql/functions/description/hash.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

82 changes: 82 additions & 0 deletions docs/reference/esql/functions/kibana/definition/hash.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions docs/reference/esql/functions/kibana/docs/hash.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions docs/reference/esql/functions/layout/hash.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions docs/reference/esql/functions/parameters/hash.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/reference/esql/functions/signature/hash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions docs/reference/esql/functions/types/hash.asciidoc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
md5
required_capability: hash_function

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

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

sha256
required_capability: hash_function

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

value:keyword | hash:keyword
test | 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
;
idegtiarenko marked this conversation as resolved.
Show resolved Hide resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading