Skip to content

feat: support for metadata in batch/stream map - #227

Merged
vaibhavtiwari33 merged 2 commits into
mainfrom
map-metadata
Nov 28, 2026
Merged

vaibhavtiwari33 merged 2 commits into
mainfrom
map-metadata

Conversation

@adarsh0728

@adarsh0728 adarsh0728 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member
  1. support reading system metadata and user metadata in batch and stream map modes
  2. this is needed for support udf child spans (tracing) in batch/stream map mode

Signed-off-by: adarsh0728 <gooneriitk@gmail.com>
@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@198d66d). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...io/numaproj/numaflow/mapstreamer/HandlerDatum.java 50.00% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #227   +/-   ##
=======================================
  Coverage        ?   61.55%           
  Complexity      ?      618           
=======================================
  Files           ?      157           
  Lines           ?     3707           
  Branches        ?      275           
=======================================
  Hits            ?     2282           
  Misses          ?     1250           
  Partials        ?      175           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment on lines +148 to +150
.setMetadata(res.getUserMetadata() == null
? MetadataOuterClass.Metadata.getDefaultInstance()
: res.getUserMetadata().toProto());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let's not set anything for downstream if userMetadata is null?

@@ -26,10 +28,32 @@ public Message(byte[] value, String[] keys, String[] tags) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
this(value, keys, tags, (NackOptions) null, null);

@@ -26,10 +28,32 @@ public Message(byte[] value, String[] keys, String[] tags) {
}

private Message(byte[] value, String[] keys, String[] tags, NackOptions nackOptions) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
private Message(byte[] value, String[] keys, String[] tags, NackOptions nackOptions) {
public Message(byte[] value, String[] keys, String[] tags, NackOptions nackOptions) {

Signed-off-by: adarsh0728 <gooneriitk@gmail.com>
@vaibhavtiwari33
vaibhavtiwari33 merged commit d68022c into main Nov 28, 2026
5 checks passed
@vaibhavtiwari33
vaibhavtiwari33 deleted the map-metadata branch November 28, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants