Skip to content

Commit 4a381b5

Browse files
authored
chore: upgrade numaflow-rs ro support metadata minimally (#289)
1 parent ee2351d commit 4a381b5

File tree

7 files changed

+9
-2
lines changed

7 files changed

+9
-2
lines changed

packages/pynumaflow-lite/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ name = "pynumaflow_lite"
99
crate-type = ["cdylib", "rlib"]
1010

1111
[dependencies]
12-
numaflow = { git = "https://github.com/numaproj/numaflow-rs.git", rev = "fde3deafea634abbc347032ff409d33d4e1514b1" }
12+
numaflow = { git = "https://github.com/numaproj/numaflow-rs.git", rev = "42a1e814459d18b89eb6ca874fd0a989fd134303" }
1313
pyo3 = { version = "0.27.1", features = ["chrono", "experimental-inspect"] }
1414
tokio = "1.47.1"
1515
tonic = "0.14.2"

packages/pynumaflow-lite/src/map/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ impl From<Message> for map::Message {
8282
keys: value.keys,
8383
value: value.value,
8484
tags: value.tags,
85+
user_metadata: None,
8586
}
8687
}
8788
}

packages/pynumaflow-lite/src/source/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ impl From<Message> for numaflow::source::Message {
8484
event_time: value.event_time,
8585
keys: value.keys,
8686
headers: value.headers,
87+
user_metadata: None,
8788
}
8889
}
8990
}

packages/pynumaflow-lite/tests/bin/batchmap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
6161
watermark: Some(prost_types::Timestamp::default()),
6262
event_time: Some(prost_types::Timestamp::default()),
6363
headers: HashMap::new(),
64+
metadata: None,
6465
}),
6566
id: id.to_string(),
6667
handshake: None,

packages/pynumaflow-lite/tests/bin/map.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
6464
watermark: Some(prost_types::Timestamp::default()),
6565
event_time: Some(prost_types::Timestamp::default()),
6666
headers: Default::default(),
67+
metadata: None,
6768
}),
6869
id: "".to_string(),
6970
handshake: None,
@@ -97,6 +98,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
9798
watermark: Some(prost_types::Timestamp::default()),
9899
event_time: Some(prost_types::Timestamp::default()),
99100
headers: Default::default(),
101+
metadata: None,
100102
}),
101103
id: "".to_string(),
102104
handshake: None,
@@ -118,6 +120,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
118120
watermark: Some(prost_types::Timestamp::default()),
119121
event_time: Some(prost_types::Timestamp::default()),
120122
headers: Default::default(),
123+
metadata: None,
121124
}),
122125
id: "".to_string(),
123126
handshake: None,

packages/pynumaflow-lite/tests/bin/mapstream.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
4343
watermark: Some(prost_types::Timestamp::default()),
4444
event_time: Some(prost_types::Timestamp::default()),
4545
headers: Default::default(),
46+
metadata: None,
4647
}),
4748
id: "".to_string(),
4849
handshake: None,

packages/pynumaflow-lite/tests/bin/sink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
6161
event_time: Some(prost_types::Timestamp::default()),
6262
id: id.to_string(),
6363
headers: HashMap::new(),
64+
metadata: None,
6465
}),
6566
handshake: None,
6667
status: None,
@@ -117,4 +118,3 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
117118

118119
Ok(())
119120
}
120-

0 commit comments

Comments
 (0)