Squashed 'vendor/ruvector/' content from commit b64c2172
git-subtree-dir: vendor/ruvector git-subtree-split: b64c21726f2bb37286d9ee36a7869fef60cc6900
This commit is contained in:
28
crates/ruvector-dag/tests/data/sample_dags.json
Normal file
28
crates/ruvector-dag/tests/data/sample_dags.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"simple_scan": {
|
||||
"nodes": [
|
||||
{"id": 0, "type": "SeqScan", "table": "users", "cost": 100.0},
|
||||
{"id": 1, "type": "Filter", "predicate": "id > 0", "cost": 10.0},
|
||||
{"id": 2, "type": "Result", "cost": 1.0}
|
||||
],
|
||||
"edges": [[0, 1], [1, 2]]
|
||||
},
|
||||
"vector_search": {
|
||||
"nodes": [
|
||||
{"id": 0, "type": "HnswScan", "index": "vec_idx", "ef_search": 64, "cost": 50.0},
|
||||
{"id": 1, "type": "Limit", "count": 10, "cost": 1.0},
|
||||
{"id": 2, "type": "Result", "cost": 1.0}
|
||||
],
|
||||
"edges": [[0, 1], [1, 2]]
|
||||
},
|
||||
"join_query": {
|
||||
"nodes": [
|
||||
{"id": 0, "type": "SeqScan", "table": "orders", "cost": 500.0},
|
||||
{"id": 1, "type": "IndexScan", "index": "products_pkey", "cost": 100.0},
|
||||
{"id": 2, "type": "HashJoin", "key": "product_id", "cost": 200.0},
|
||||
{"id": 3, "type": "Sort", "keys": ["created_at"], "cost": 50.0},
|
||||
{"id": 4, "type": "Result", "cost": 1.0}
|
||||
],
|
||||
"edges": [[0, 2], [1, 2], [2, 3], [3, 4]]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user