You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just starting to try Proton and maybe I'm missing something or misunderstanding something.
I'm trying to run a request with pseudocode and getting an exception. This behavior is not reproduced in any version of Clickhouse.
How to reproduce
Executing a query: SELECT x.* FROM (SELECT 'test' name) x
When executing query following exception is received:
Syntax error: failed at position 32 ('name'):
SELECT x.* FROM (SELECT 'test' name) x
Expected one of: NOT, BETWEEN, IS, AS, FROM, WHERE, PARTITION BY, SHUFFLE BY, GROUP BY, WITH, HAVING, WINDOW, ORDER BY, LIMIT, EMIT, SETTINGS, UNION
Executing a query when an alias is created with the 'AS' keyword: SELECT x.* FROM (SELECT 'test' AS name) AS x
When executing query following output is received:
┌─name─┐
│ test │
└──────┘
1 row in set. Elapsed: 0.001 sec.
Additional context
I expect that such queries should be executed without exceptions, since the keyword 'AS' is optional.
The text was updated successfully, but these errors were encountered:
Thank you for your experience @Catwoolfii .
For some reasons, we must use explicit aliases for tables via AS keyword.
Usually, we always recommend using AS to define aliases everywhere, which is more understandable.
I'm just starting to try Proton and maybe I'm missing something or misunderstanding something.
I'm trying to run a request with pseudocode and getting an exception. This behavior is not reproduced in any version of Clickhouse.
How to reproduce
SELECT x.* FROM (SELECT 'test' name) x
When executing query following exception is received:
SELECT x.* FROM (SELECT 'test' AS name) AS x
When executing query following output is received:
Additional context
I expect that such queries should be executed without exceptions, since the keyword 'AS' is optional.
The text was updated successfully, but these errors were encountered: