feat(operators): Add AND, OR, and NOT bitwise operators#1504
feat(operators): Add AND, OR, and NOT bitwise operators#1504asauzeau wants to merge 2 commits intovectordotdev:mainfrom
Conversation
Signed-off-by: Antoine Sauzeau <antoine.sauzeau3@gmail.com>
Signed-off-by: Antoine Sauzeau <antoine.sauzeau3@gmail.com>
| encode_base64("please encode me") | ||
| encode_base64(encode_gzip("please encode me")) No newline at end of file | ||
| encode_base64(encode_gzip("please encode me")) | ||
| 15 & 20 |
There was a problem hiding this comment.
Nice addition. Did you have a chance to run the fuzzer as well?
There was a problem hiding this comment.
Yes I tested it for about ten minutes and didn't experience any crashes. I'll try to run it longer.
Did you mean you chose I don't see an easy solution around this. Perhaps we could replace |
|
Okay indeed, it seems like a good idea to rename the merge operator using So I'm I supposed to follow the cycle of this document and for now just “depreciate” the merge operator
Good idea. |
Yes, that sounds like a reasonable plan. This reminds me we need a similar policy that lives in the VRL repo. BTW, I mentioned |
Initially I had in mind |
|
Hmm, on one hand We could also have |
|
Just randomly reviewing the issue list here... Might I suggest It also occurs to me that the current merge-assign operator, |
Summary
Add AND (&), OR (^) and NOT (~) bitwise operators. See #1386.
'|' token was already used for the merge operator so I chose another token for the not operator, but it's not ideal since it's usually used for XOR operator.
Change Type
Is this a breaking change?
How did you test this PR?
Tests are included.
Does this PR include user facing changes?
our guidelines.
Checklist
run
dd-rust-license-tool writeand commit the changes. More details here.