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

Offspring FastDataset "leaking" add()s to parent #60

Open
Peeja opened this issue Mar 3, 2023 · 0 comments
Open

Offspring FastDataset "leaking" add()s to parent #60

Peeja opened this issue Mar 3, 2023 · 0 comments

Comments

@Peeja
Copy link

Peeja commented Mar 3, 2023

It looks like a FastDataset derived from another one is meant to be completely independent (logically) of its parent, but still structurally share its parent's data as much as possible. If that's the intention, I believe I've found a bug.

Steps to Reproduce

  1. Create a FastDataset containing quads about at least one subject.
  2. Create a derivative FastDataset which includes at least one of those quads.
  3. In the second dataset, add() a quad about the same subject.

Expected: The add()ed quad should exist in the second dataset, but not the first.
Actual: The add()ed quad appears in both datasets now.

See live example.

More info

  • The original dataset will not pick up quads about any other subjects add()ed to the second dataset.
  • The example uses match() to create the second dataset, but I've tested and seen the same behavior with minus(), and I assume it applies in other cases as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants