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

MultiSource: when querying back in time, consider all versions of a changed entity #262

Open
rompetroll opened this issue Sep 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@rompetroll
Copy link
Contributor

rompetroll commented Sep 22, 2023

Currently, when multiSource processes a change found in a dependency, it also does a query back in time to find the last version of the changed entity. This older version can in some cases have had a reference back to our main dataset, which therefore requires the previously connected main entity to be emitted.

In some cases, there may have been many changes to an entity in a dependency dataset since the last job run, and any of the intermediate versions may have had relevant references. Therefore the source implementation should query back in time for all of there potential versions as well.

image

The sketch drawing illustrates 6 changes to a given entity in a dependency dataset over time, with their respective references to entities in the next joined dataset.

In this example we want E1, E2 and E3 emitted. The current implementation only catches E1

@rompetroll rompetroll added the bug Something isn't working label Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant