Repository navigation
Fix qualified column resolution for multiple JOINs with USING - #95157
Conversation
|
Workflow [PR], commit [4047a5d] Summary: ❌
|
Fix types after change in analyzer. Added plus function to trigger logical error in case type is different from resolved funciton argument.
Backport #95157 to 26.1: Fix qualified column resolution for multiple JOINs with USING
Backport #95157 to 25.11: Fix qualified column resolution for multiple JOINs with USING
Backport #95157 to 25.12: Fix qualified column resolution for multiple JOINs with USING
Backport #95157 to 25.8: Fix qualified column resolution for multiple JOINs with USING
Backport #95157 to 25.3: Fix qualified column resolution for multiple JOINs with USING
|
Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1260 Labels added:
These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels. |
|
Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1260 Labels added:
These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels. |
|
Backport labels have been automatically added based on https://github.com/clickhouse/clickhouse-core-incidents/issues/1260 Labels added:
These labels ensure backport PRs are properly created for each affected release version. The release automation will create backport PRs as needed based on these labels. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
USINGclause. Previously, subsequent joins incorrectly updated types of underlying source columns to a common supertype even when the column was not involved in that join (e.g., inSELECT t2.a FROM t1 LEFT JOIN t2 USING (a) LEFT JOIN t3 USING (a), thet2.acolumn is only used by the first join, so its type should be the supertype oft1.aandt2.a, excludingt3.a). This could lead to logical errors or crashes when functions expected different column types than what actually appeared in the execution plan.Ref #91738
Version info
26.2.1.9726.1.3.2,25.12.6.4,25.11.9.14,25.8.17.5,25.3.15.4