diff --git a/packages/diskgraph/diskgraph-pybind/python/tests/bench_runtime_batch_iterator.py b/packages/diskgraph/diskgraph-pybind/python/tests/bench_runtime_batch_iterator.py index 58f4a32cf..0178eb8aa 100644 --- a/packages/diskgraph/diskgraph-pybind/python/tests/bench_runtime_batch_iterator.py +++ b/packages/diskgraph/diskgraph-pybind/python/tests/bench_runtime_batch_iterator.py @@ -135,6 +135,9 @@ def _build_fixture( [1000 + i for i in range(n_seeds)], type=pa.timestamp("s") ), "TARGET1": pa.array([i * 0.1 for i in range(n_seeds)], type=pa.float64()), + # Resolution mode, as in test_runtime_batch_iterator_e2e.py: single-shard + # users node-id == user pk == ENTITY1. + "entity_node_id": pa.array([i % n_users for i in range(n_seeds)], type=pa.uint64()), }), data_dir / "seeds.parquet", ) @@ -150,20 +153,11 @@ def _build_fixture( {"name": "ENTITY1", "ingested_dtype": "int64"}, {"name": "TIMESTAMP", "ingested_dtype": "timestamp"}, {"name": "TARGET1", "ingested_dtype": "float64"}, + {"name": "entity_node_id", "ingested_dtype": "u_int64"}, ], "primary_key": None, "create_time": "TIMESTAMP", - "fkeys": [{ - "src_column": "ENTITY1", "dst_table": "users", - "forward": { - "time": { - "table": "train_seeds", "column": "TIMESTAMP", - "bitwidth": 32, "unit": "s", - }, - }, - "external_parent": True, - "bidirectional": False, - }], + "fkeys": [], "source": {"type": "parquet", "paths": [str(data_dir / "seeds.parquet")]}, }], }), @@ -209,6 +203,7 @@ def _run_one(fixture: dict, batch_size: int, n_iter: int, fused: bool) -> dict: shuffle=False, rnd_seed=None, epoch=0, batch_size=batch_size, drop_last=False, fused=fused, + entity_node_type="users", ) _ = next(iter(iterator)) @@ -221,6 +216,7 @@ def _run_one(fixture: dict, batch_size: int, n_iter: int, fused: bool) -> dict: shuffle=False, rnd_seed=None, epoch=0, batch_size=batch_size, drop_last=False, fused=fused, + entity_node_type="users", ) edge_counts: list[int] = []