Skip to content

Adding node layers to tests and loaders#2597

Merged
fabianmurariu merged 129 commits into
db_v4from
db_v4_node_layers
Jun 4, 2026
Merged

Adding node layers to tests and loaders#2597
fabianmurariu merged 129 commits into
db_v4from
db_v4_node_layers

Conversation

@arienandalibi
Copy link
Copy Markdown
Collaborator

What changes were proposed in this pull request?

Node layers were previously not tested rigorously. They are now being added to tests, proptests, the loaders, and the parquet encoders. The loaders and parquet encoders are also used by materialize.

Why are the changes needed?

Fix node layer related bugs that we find.

Does this PR introduce any user-facing change? If yes is this documented?

It shouldn't

How was this patch tested?

proptests

Are there any further changes required?

There shouldn't be

…re-compute new IDs and turn them into RecordBatches
…ock the graph to get parallel iterators over edges. We filter to respect GraphView filtering behaviour.
…ill use ArrowWriter<File> for now, but we will add support for loading into a graph
# Conflicts:
#	raphtory/src/serialise/parquet/mod.rs
… function can now be passed to these functions to determine how the sinks will be created. This will allow us to pass a sink which is a crossbeam_channel to send RecordBatches elsewhere.
# Conflicts:
#	raphtory/src/serialise/parquet/mod.rs
…f encoding everything and then ingesting everything (which would keep everything in memory at once).
…anning each segment for each row. Now using this path in the new materialize_using_recordbatches function.
…separate out running materialize and parquet decoding. Test using SF10 for now.
…the disk graphs are unreadable or data is loaded incorrectly
…the disk graphs are unreadable or data is loaded incorrectly
…the source graph doesn't change each time the test runs. Added .gitkeep empty files so empty directories are picked up by git.
…st. Add an entry in the makefile to run this example and create the necessary sentinel .gitkeep files in empty directories.
…s in pometry-storage instead of having them in Raphtory.
# Conflicts:
#	raphtory-tests/tests/test_materialize_sf10.rs
#	raphtory-tests/tests/test_saved_graphs.rs
@fabianmurariu fabianmurariu marked this pull request as ready for review June 1, 2026 14:21
Copy link
Copy Markdown
Collaborator

@fabianmurariu fabianmurariu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like this to be tested in some of our workflows before we merge

.iter()
.next()
.is_some()
let mut exact_layers = node.layer_ids_iter(view.layer_ids()).collect_vec();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no collecting allowed

@fabianmurariu fabianmurariu merged commit 81075a2 into db_v4 Jun 4, 2026
17 of 23 checks passed
@fabianmurariu fabianmurariu deleted the db_v4_node_layers branch June 4, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants