test: migrate materialized-view Function references

This commit is contained in:
Xuanwo
2026-09-15 16:03:38 +08:00
parent 1568ab941e
commit 2c921169d7
2 changed files with 5 additions and 3 deletions
+4 -2
View File
@@ -2568,7 +2568,8 @@ mod tests {
FunctionBinding::from_json(
&serde_json::json!({
"binding_id": binding_id,
"function": {"name": "embed", "version": "fv_test"},
"function": {"name": "embed", "version": "1", "object_id": "fixture", "location": "memory:///fixture",
"manifest_digest": "sha256:7e22f815b6648e14f093a3979a8e5a2082fa773ebe1ec84b135cae7e84d6f8e6"},
"inputs": [{
"parameter": "text", "field_id": -1, "field_path": input,
"arrow_type": input_type, "nullable": true,
@@ -2845,7 +2846,8 @@ mod tests {
let binding = FunctionBinding::from_json(
&serde_json::json!({
"binding_id": "fb_pair",
"function": {"name": "pair", "version": "fv_test"},
"function": {"name": "pair", "version": "1", "object_id": "fixture", "location": "memory:///fixture",
"manifest_digest": "sha256:7e22f815b6648e14f093a3979a8e5a2082fa773ebe1ec84b135cae7e84d6f8e6"},
"inputs": [{"parameter": "value", "field_id": -1, "field_path": "id",
"arrow_type": int, "nullable": true}],
"outputs": [
+1 -1
View File
@@ -3033,7 +3033,7 @@ mod tests {
http::Response::builder()
.status(200)
.body(format!(
r#"{{"job_id": "job-1", "job_type": "create_function", "job_state": "{}", "creation_ms": 1, "result": {{"name": "embed", "version": "fv_1"}}}}"#,
r#"{{"job_id": "job-1", "job_type": "create_function", "job_state": "{}", "creation_ms": 1, "result": {{"name": "embed", "version": "1"}}}}"#,
state
))
.unwrap()