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

Another perspective for spine/batch distinction? #4

Open
blp opened this issue Nov 22, 2023 · 0 comments
Open

Another perspective for spine/batch distinction? #4

blp opened this issue Nov 22, 2023 · 0 comments

Comments

@blp
Copy link
Member

blp commented Nov 22, 2023

The implementation of batches and spines in DBSP has this structure:

  • A batch is an immutable collection of tuples.
  • A spine is a mutable collection of batches.

I wonder whether there'd be value in considering the following approach:

  • A batch is either an immutable collection of tuples, or an immutable collection of two (or more?) batches.
  • A spine mutably refers to one batch.

In the latter, a "batch" refers to its overall merged content, and in the background the physical representation of the batch can be replaced by an equivalent, that is, merges can take place without disturbing the batch's identity.

I don't know whether this perspective is different from the existing one in an important way, but I personally felt like I had a shift in thinking when it came to mind.

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

No branches or pull requests

1 participant