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

Support for row values comparisons #1522

Open
j30ng opened this issue Jun 1, 2022 · 2 comments
Open

Support for row values comparisons #1522

j30ng opened this issue Jun 1, 2022 · 2 comments

Comments

@j30ng
Copy link

j30ng commented Jun 1, 2022

Hi, I'm trying to do something like below to implement keyset pagination

SELECT * FROM contacts
WHERE (lastname,firstname) > (?1,?2)
ORDER BY lastname, firstname
LIMIT 7;

(from https://www.sqlite.org/rowvalue.html#scrolling_window_queries)

What I basically need is an operator that allows comparing n-tuple columns to n-tuple values. Is there going to be a support for this? I actually wrote my own operators but if you guys can officially support this for types Pair(col1, col2) and Triple(col1, col2, col3) that'll be amazing.

@cy
Copy link

cy commented Aug 4, 2023

+1 to this, @j30ng maybe you could push your custom operator as a PR to the maintainers?

@j30ng
Copy link
Author

j30ng commented Aug 15, 2023

Hi @cy, could definitely try that but this issue hasn't had much traction from the users or the maintainers, so I don't know how that will go.

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

2 participants