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

Table doesn't exist exception when using arrayExists #22223

Open
OmarBazaraa opened this issue Mar 28, 2021 · 1 comment
Open

Table doesn't exist exception when using arrayExists #22223

OmarBazaraa opened this issue Mar 28, 2021 · 1 comment

Comments

@OmarBazaraa
Copy link
Contributor

I have the following table:

CREATE TABLE test.table
(
    Id      UInt64,
    Arr1    Array(String),
    Arr2    Array(String)
)
ENGINE = MergeTree()
ORDER BY (Id);

Whenever I run this simple query, I get that strange error that I'm not expecting ...

SELECT arrayExists(x -> (x NOT IN (Arr2)), Arr1)
FROM test.table
Query id: 1407dc4e-1176-4bd3-9d93-e2706eeef12b

Received exception from server (version 21.1.2):
Code: 60. DB::Exception: Received from localhost:9440. DB::Exception: Table default.Arr2 doesn't exist: While processing arrayExists(x -> (x NOT IN (Arr2)), Arr1).

Why is ClickHouse considering Arr2 as a table?!

@alexey-milovidov
Copy link
Member

alexey-milovidov commented Mar 28, 2021

It recognizes the syntax x IN table and parentheses around table do nothing.
In this query the syntax is ambiguous. This should be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants