Comments (1)
Hey @torfjor, the documentation is outdated and pretty unhelpful but the behaviour is "correct" in the sense that it's intentional. Within a traditional mapping the new message being created, and the message that is being fed into the mapping, are the same, and so @
syntax only differs from the metadata
(and meta
) function in so far as changes made within the mapping are not reflected by the metadata
function as it references a read-only instance of the source message.
The result_map
works slightly differently, as the message being created is a mutation of the message as it was before the branch processors were enacted, and the message being fed into the mapping is the newly created message that resulted from the branch processors. This means that @
and metadata
can yield entirely different metadata values as one is reading from the old message and one is reading from the new one.
We have a small section on the branch page that briefly explains the behaviour: https://www.benthos.dev/docs/components/processors/branch#metadata. However, the docs reference the older meta
function and it could definitely do with being fleshed out a bit.
from benthos.
Related Issues (20)
- MongoDB regression: ISODate fields get persisted as strings
- Mappings caveat or hidded beahaviour or bug with complex json HOT 1
- Incorrect default Redis port when creating configuration HOT 2
- http over amqp_0_9 proxy HOT 1
- sql_insert ORA-01483 HOT 8
- Bug: nats_jetstream input has a logic error in the stream check
- Allow setting benthos cli flags from environment variables
- Bloblang minification / alternative to newlines for separating statements
- schema_registry_encode double encodes path params HOT 1
- [Feature request] Telegram output HOT 1
- [Feature Request] Support inserting UUID from string in cassandra HOT 5
- NATS User Password Support HOT 2
- Workflow Processor - DAG Execution Ordering HOT 13
- Task resource isolation In streams model
- Add Splunk_hec label to metrics output HOT 1
- output component fallback not work HOT 1
- [Feature Request] Trim whitespaces from columns in CSV scanner/input HOT 1
- aws_s3: Scanner and backing reader not closed on non `io.EOF` error
- 4.28.0 should really be 5.0.0 HOT 3
- Document change in licensing HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from benthos.