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

Mechanism to track provenance of output records #103

Open
ryzhyk opened this issue Sep 21, 2018 · 5 comments
Open

Mechanism to track provenance of output records #103

ryzhyk opened this issue Sep 21, 2018 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@ryzhyk
Copy link
Contributor

ryzhyk commented Sep 21, 2018

No description provided.

@ryzhyk ryzhyk added the enhancement New feature or request label Sep 21, 2018
@ryzhyk ryzhyk self-assigned this Sep 21, 2018
@ryzhyk
Copy link
Contributor Author

ryzhyk commented Sep 26, 2019

One way to do this is to add a provenance field to Value, but make it invisible to comparison operators, so that different derivations of the same Value look the same to differential. This way provenance won't change the semantics of DDlog, but we will only observe one derivation of each value.

@namibj
Copy link

namibj commented Jul 31, 2020

I just want to mention the existence of prior art: https://github.com/frankmcsherry/explanation
It is only for an ancient version of Differential Dataflow, but lessons learnt should be valuable

@sdifv
Copy link

sdifv commented Jun 4, 2021

One way to do this is to add a provenance field to Value, but make it invisible to comparison operators, so that different derivations of the same Value look the same to differential. This way provenance won't change the semantics of DDlog, but we will only observe one derivation of each value.

Indeed, this is a very intuitive method, but as you said, making this field invisible will actually make the provenance information partly missing if there existing multi-derivation rule.

I found that another datalog dialect, souffle’, already supports the provenance feature to help users with interactive debugging. Could you please share me whether there is any development plan for DDlog in this aspect? Therefore, users do not need to directly modify the DDlog code logic to get the support of provenance.

Thank you!

@mihaibudiu
Copy link

This is certainly something we'd like to do, but at this point no one is working on this topic.

@Kixiron
Copy link
Contributor

Kixiron commented Jun 5, 2021

Soufflé has done some other relevant work on this recently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants