mirror of
https://github.com/lancedb/lancedb.git
synced 2026-11-14 22:56:54 +00:00
test: migrate materialized-view Function references
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user