aliases not work when follow table name

721 views
Skip to first unread message

subern

unread,
Jul 25, 2016, 4:20:40 AM7/25/16
to ClickHouse

select a.A, concat(a.B1, b.B2) as res

from test as as a

inner join test b

using A

where a.B1 < b.B2;


it doesn't work.and note:  Expected USING or ON  

man...@gmail.com

unread,
Jul 25, 2016, 7:35:25 PM7/25/16
to ClickHouse
Yes, table aliases (correllation names) are not supported right now.

понедельник, 25 июля 2016 г., 11:20:40 UTC+3 пользователь subern написал:

Tima Ber

unread,
Jul 26, 2016, 9:49:38 AM7/26/16
to ClickHouse
When I joined the two tables, I can somehow distinguish between columns with the same name?

man...@gmail.com

unread,
Jul 26, 2016, 3:49:32 PM7/26/16
to ClickHouse
You need to do JOIN subquery with subquery and set different aliases for that columns inside.

вторник, 26 июля 2016 г., 16:49:38 UTC+3 пользователь Tima Ber написал:

Tima Ber

unread,
Jul 27, 2016, 4:43:16 AM7/27/16
to ClickHouse

Thanks, it works

rasmus

unread,
Sep 16, 2016, 7:33:38 AM9/16/16
to ClickHouse
Will aliases be supported in the near future?

man...@gmail.com

unread,
Sep 17, 2016, 9:22:03 PM9/17/16
to ClickHouse
We plan to add support in 2016.

dmitry skripnikov

unread,
Jul 3, 2017, 5:52:26 AM7/3/17
to ClickHouse
Hello!
Are table alases supported now? it is crucial for me because Hibernate always uses aliases.

воскресенье, 18 сентября 2016 г., 4:22:03 UTC+3 пользователь man...@gmail.com написал:
Reply all
Reply to author
Forward
0 new messages