Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More edge property filters #1783

Merged
merged 34 commits into from
Sep 30, 2024
Merged

More edge property filters #1783

merged 34 commits into from
Sep 30, 2024

Conversation

ljeub-pometry
Copy link
Collaborator

What changes were proposed in this pull request?

  • filter based on property existence
  • filter based on set of values
  • ne, ge, le

Why are the changes needed?

we need to filter properties

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

yes, more methods with python doc strings

How was this patch tested?

needs more tests

Are there any further changes required?

more tests

Copy link
Collaborator

@miratepuffin miratepuffin left a comment

Choose a reason for hiding this comment

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

Couple minor points/questions but otherwise LGTM

) -> Result<Option<usize>, GraphError> {
match self.get_id(prop) {
Some(id) => {
let existing_dtype = self.get_dtype(id).unwrap();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know this cannot fail, but worth turning the unwrap into a '?'

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Can turn it into an expect, if this is ever not true, we want shit to blow up!

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Rust Benchmark'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 3dd5eeb Previous: 5f0ae40 Ratio
lotr_graph_subgraph_10pc/active edge 462 ns/iter (± 37) 225 ns/iter (± 8) 2.05

This comment was automatically generated by workflow using github-action-benchmark.

Copy link
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.

LGTM

@ljeub-pometry ljeub-pometry merged commit 483ae7e into master Sep 30, 2024
19 checks passed
@ljeub-pometry ljeub-pometry deleted the feature/MorePropertyFilters branch September 30, 2024 14:38
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.

3 participants