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
Could you please check SQL below and clarify why ClickHouse returns 11 for A and 13 for B though 12 for B is expected? It does not matter wether we work with subquery or table. And it does not matter either alias B goes before or after A.
In the SQL query we obviously specify - we want to get data from table/subquery S and add +1 and +2 in different aliases. Yes, alias A is the same with column name, but it looks like you substitute table/subquery data on the fly.
selects.a+1as a
, s.a+2as b
from (
select10as a
) s
If we talk about Oracle, PostgreSQL or any other DBMS - the mentioned behavior of DBMS is a bug.
Best regards,
Kostyantyn
The text was updated successfully, but these errors were encountered:
Hi Team,
Could you please check SQL below and clarify why ClickHouse returns 11 for A and 13 for B though 12 for B is expected? It does not matter wether we work with subquery or table. And it does not matter either alias B goes before or after A.
In the SQL query we obviously specify - we want to get data from table/subquery S and add +1 and +2 in different aliases. Yes, alias A is the same with column name, but it looks like you substitute table/subquery data on the fly.
If we talk about Oracle, PostgreSQL or any other DBMS - the mentioned behavior of DBMS is a bug.
Best regards,
Kostyantyn
The text was updated successfully, but these errors were encountered: