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
{{ message }}
Repository navigation
Query parameters + WITH + AS column doesn't expand. #33000
Describe the unexpected behaviour
Query parameters doesn't expand when they being used in WITH and aliased to already exist column name.
How to reproduce
ClickHouse 21.13
clickhouse-client -mn --param_test_a="30" --query "WITH {test_a:UInt32} as column SELECT column as number FROM numbers(2) FORMAT TSVWithNames"
number
0
1
clickhouse-client -mn --param_test_a="30" --query "WITH {test_a:UInt32} as column SELECT {test_a:UInt32} as number FROM numbers(2) FORMAT TSVWithNames"
number
30
30
clickhouse-client -mn --param_test_a="30" --query "WITH {test_a:UInt32} as column SELECT column FROM numbers(2) FORMAT TSVWithNames"
column
30
30
23.2
❯ clickhouse-client -mn --param_test_a="30" --query "WITH {test_a:UInt32} as column SELECT column as number FROM numbers(2) FORMAT TSVWithNames" --allow_experimental_analyzer 1
number
30
30
❯ clickhouse-client -mn --param_test_a="30" --query "WITH {test_a:UInt32} as column SELECT column as number FROM numbers(2) FORMAT TSVWithNames" --allow_experimental_analyzer 0
number
0
1
Activity
UnamedRus commentedon Mar 27, 2023
Related #42648
Close: #33000