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

persist should be lattice typed, e.g. to enforce uniqueness of sets #1114

Closed
jhellerstein opened this issue Mar 20, 2024 · 2 comments
Closed
Assignees

Comments

@jhellerstein
Copy link
Contributor

Currently to persist and remove dups you'd have to write:

source... -> unique() -> persist()

That pays for storing the state twice.

What we'd really like is

source...->persist<SetUnion<T>>()

or maybe to support deletion we'd like:

source...->persist<MapUnionWithTombstones<HashMap<K, SetUnionHashSet<V>>, HashSet<K>>>
@MingweiSamuel
Copy link
Member

Use lattice_fold/lattice_reduce with flatten after (bit clunky) or, in the future, state

@MingweiSamuel
Copy link
Member

state is the new persist #1058

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

3 participants