v.19.4Improvements
Support Aliases in JOIN ON Section for Right Table Columns
Support aliases in JOIN ON section for right table columns. #4412 (Artem Zuikov)
Why it matters
Previously, aliases defined in the right table could not be used in theON condition of a JOIN. This feature allows users to reference such aliases directly, improving query expressiveness and readability when joining tables.How to use it
Define column aliases in the right table's subquery or source and then refer to those aliases in theON section of the JOIN clause as you normally would with other column names.