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

Help writing SQL query that only lists issues that are assigned to a specific user #12

Open
JasoonS opened this issue Jan 7, 2022 · 1 comment

Comments

@JasoonS
Copy link

JasoonS commented Jan 7, 2022

Firstly, thanks you for this great tool!

I'm definitely not an SQL master and have spent way too long trying to work this out. Maybe you already have a command to do this already prepared?

How can you write a query that only shows issues related to a specific user.

I have tried many variations from this answer for example: https://stackoverflow.com/q/11231544/3103033

I'm probably missing something stupid.

Many thanks 🙏

@KOBA789
Copy link
Owner

KOBA789 commented Jan 7, 2022

The hard point is that gluesql, on which gh-sql depends, does not provide a handy way to check value existence in an array. (as you know)

Honestly speaking, I have no good ideas to solve this.

Bad news: gluesql hard-codes SQL functions
https://github.com/gluesql/gluesql/blob/d7f8c81b6c575b8bcd39cafcbb5709e55c8d931e/core/src/executor/evaluate/mod.rs#L277-L602

I hope to define a custom function easily... 😢

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