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

Accept Table as argument to isin #796

Open
martijnthe opened this issue Mar 20, 2024 · 0 comments
Open

Accept Table as argument to isin #796

martijnthe opened this issue Mar 20, 2024 · 0 comments

Comments

@martijnthe
Copy link

martijnthe commented Mar 20, 2024

ClickHouse supports using a table identifier directly with IN.

For example, this is a valid ClickHouse query:

WITH y AS
    (
        SELECT n
        FROM values('n int', 1, 2)
    )
SELECT *
FROM values('n int', 1, 2, 3, 4) AS x
WHERE x.n IN y

It would be nice if pypika's isin would accept a Table as well, but currently it only accepts list | tuple | set | Term.

I realize this syntax is ClickHouse specific and not standard SQL. I'm not sure whether that's a requirement for this library's API.

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