Open x0st opened 10 hours ago
it works with a disabled analyzer set enable_analyzer=0;
https://fiddle.clickhouse.com/fd5fd116-0e6e-4d8c-8619-6ae3eff3ade4
try
cat /etc/clickhouse-server/users.d/enable_analyzer.xml
<?xml version="1.0" ?>
<clickhouse>
<profiles>
<default>
<enable_analyzer>0</enable_analyzer>
</default>
</profiles>
</clickhouse>
@den-crane True, it works. So, do you know if it's a bug or not really? Is this the right page https://clickhouse.com/docs/en/operations/analyzer to read about analyzer? Or is the best way to read the actual code? Out of curiosity, I would like to understand why it's behaving like that.
It's just a bug in the new analyzer in alias resolution. There are plenty of them https://github.com/ClickHouse/ClickHouse/issues?q=is%3Aopen+is%3Aissue+label%3Aanalyzer
And your query works if you use a table alias https://fiddle.clickhouse.com/9efdaaf2-d47b-4c67-98bb-e121fc10ee16
some info about the new analyzer https://youtu.be/FGhdXXXTuTg?t=2523
Understood, thank you for quick help!
Describe the issue I recently upgraded to 24.10.1 from 23.11.3 and some of my queries stopped working.
How to reproduce
Error message and/or stacktrace
Additional context