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

search in array column #862

Open
moinologics opened this issue Dec 31, 2023 Discussed in #861 · 0 comments
Open

search in array column #862

moinologics opened this issue Dec 31, 2023 Discussed in #861 · 0 comments
Labels
feature New fetures product/api-server REST API Server

Comments

@moinologics
Copy link

Discussed in #861

Originally posted by moinologics December 31, 2023
add support to search in an array column

example -

table users

id name blocked_user_ids
1 john [3]
2 jane [1,3]
3 bob []

resultant query

SELECT name FROM users WHERE {{id}} = ANY(blocked_user_ids)

when id = 1, return jane
when id = 3, return john & jane

@avelino avelino added feature New fetures product/api-server REST API Server labels Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New fetures product/api-server REST API Server
Projects
None yet
Development

No branches or pull requests

2 participants