Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
Expand All @@ -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")]},
}],
}),
Expand Down Expand Up @@ -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))

Expand All @@ -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] = []
Expand Down
Loading