-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Re-implement the put
, replace
, and extend
operators as documented
#3089
Conversation
0f01b7e
to
4669ce6
Compare
This new version of the operator projects, re-orders, and also supports extractors and selectors besides fixed values. Here's an example: ``` ❯ gunzip -c vast/integration/data/json/sip.log.json.gz \ | vast exec 'read json | head 1 | put user_agent, schema=#type, time=#import_time, first_ip=:ip | write json' \ | jq { "user_agent": "friendly-scanner", "schema": "b751f83ded9bfc9d", "time": "1970-01-01T00:00:00.000000", "first_ip": "119.57.72.26" } ```
4669ce6
to
3179f33
Compare
The |
They do work correctly, but the example has an inferred type so Arguably for the import time, the function should add nulls if the import time is not available. Edit: I made this change. |
While you're touching this code, would it make sense to add the |
I'd say no, but we can do so pretty soon in a follow-up PR. We have this tracked on the roadmap, and this PR is neither the time nor the place for it. |
ff435dd
to
f36640e
Compare
This hasn't been needed for a while now, the last VAST version to write this did not even have a partition version, and we nowadays only support partitions with a partition version of at least 1.
e86c01b
to
402698f
Compare
put
operator as documentedput
, replace
, and extend
operators as documented
When I tested this, |
Right, that is just missing. I have a fix locally but that is rather complicated. Would you prefer that to be in another PR or still pushed on top of this one? Edit: We agreed in a quick call to just push this now, which I've just done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice 👍
I investigated the web plugin crash a bit more. When building the plugin in standalone debug mode I get an ASAN error when accessing
The exact command that triggers it is:
The same problem does not occur when the plugin is built as part of VAST. |
This should be fixed with 59f1689. |
This new version of
put
the operator projects, re-orders, and also supports extractors and selectors besides fixed values.Here's an example:
The logic has also been implemented for
extend
andreplace
accordingly.Fixes tenzir/issues#286