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

Introduce the put operator #3036

Merged
merged 6 commits into from Mar 29, 2023
Merged

Conversation

dominiklohmann
Copy link
Member

The put operator is a replacement for both the extend and the replace operators. It takes as arguments a comma-separated list of assignments. If the assigned-to extractor resolves for the input data replaces all occurences of the field (previously replace), and if the extractor does not resolve adds one new field at the end (previously extend).

put is the first operator not to be available in the old pipeline operator framing, and as such is not currently reachable by the user.

@dominiklohmann dominiklohmann added the feature New functionality label Mar 25, 2023
@dominiklohmann dominiklohmann force-pushed the topic/put-operator branch 2 times, most recently from 92815de to 10a42e7 Compare March 25, 2023 14:34
The `put` operator is a replacement for both the `extend` and the
`replace` operators. It takes as arguments a comma-separated list of
assignments. If the assigned-to extractor resolves for the input data
replaces all occurences of the field (previously `replace`), and if the
extractor does not resolve adds one new field at the end (previously
`extend`).

`put` is the first operator not to be available in the
old pipeline operator framing, and as such is not currently reachable
by the user.
Copy link
Contributor

@jachris jachris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libvast/test/logical_pipeline.cpp still mentions the removed operators.

libvast/builtins/operators/put.cpp Outdated Show resolved Hide resolved
libvast/builtins/operators/put.cpp Show resolved Hide resolved
changelog/next/features/3036--put-operator.md Outdated Show resolved Hide resolved
@jachris jachris merged commit 5d80ba9 into topic/update-query-pipeline Mar 29, 2023
3 of 4 checks passed
@jachris jachris deleted the topic/put-operator branch March 29, 2023 07:47
dominiklohmann added a commit that referenced this pull request Apr 12, 2023
This partially reverts commit 5d80ba9,
reversing changes made to 56fd220, by
re-introducing the `extend` and `replace` operators.
dominiklohmann added a commit that referenced this pull request Apr 12, 2023
This partially reverts commit 5d80ba9,
reversing changes made to 56fd220, by
re-introducing the `extend` and `replace` operators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality
Projects
None yet
2 participants