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

Should deep equality in PartiQL be limited? #12

Open
vgapeyev opened this issue May 13, 2023 · 0 comments
Open

Should deep equality in PartiQL be limited? #12

vgapeyev opened this issue May 13, 2023 · 0 comments

Comments

@vgapeyev
Copy link
Contributor

PartiQL equality, as defined in Section 7.1.1. of 2019 spec, defines how to compare any two values of any two types, in particular defining deep equality for collection values.

It is clear how this equality is useful when comparing "small" tuples or lists that occur as elements in tables that are being joined, grouped, etc. on these elements.

However, in principle, it would also apply to "large" bags that correspond to whole tables in databases. It might not be a good idea to allow checking equality of those too easily.

Is it possible to define a boundary between "small" and "large" values, to limit applicability of deep equality?

A different aspect of this issue comes in #4, where prohibitive cost comes from algorithmic complexity of equality rather than data size alone.

@johnedquinn johnedquinn transferred this issue from partiql/partiql-spec Nov 27, 2023
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