-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Exception while aliasing expression to column name on distributed table engine. #9672
Comments
@4ertus2 would you like to investigate this issue? I think you are the most experienced in aliases now. |
localhost shard return row and throw exception at one time? select _shard_num, '2' as dummy from d_one as o WHERE toUInt8(dummy); select _shard_num, '2' as dummy from d_one as o WHERE toUInt8(o.dummy); select '2' as dummy from d_one as o WHERE toUInt8(o.dummy); select _shard_num, toString('2') as dummy from d_one as o WHERE toUInt8(o.dummy); |
Cannot reproduce on master with #9891 https://github.com/ClickHouse/ClickHouse/pull/9891/files#diff-f8c0f778b2fb25c80f645ac2737f6d78R1 You may use some specific configuration. If so you need add more info here. |
Clickhouse server version 20.3.4
looks like that because clickhouse treat local and remote server differently |
Same error on master version and #9891 pull request
|
Describe the bug
When we use alias for expression with same name as table column but different data type, and that column appear in WHERE clause on Distributed table exception happens.
How to reproduce
ClickHouse server version 20.1.3, 20.3.1
On *MergeTree table query works
On Distributed table query falls
Expected behavior
Both queries works
Additional context
ClickHouse server version 19.13.7.57 everything works.
The text was updated successfully, but these errors were encountered: