Fix crash in not equi join on#15162
Conversation
|
The problem with PR is distributed queries expect ON with |
|
Hi, This PR breaks a lots of queries in my app : queries like SELECT
t.value,
i18n.title
FROM
aTable t
LEFT ANY JOIN aTable_i18n i18n
ON i18n.ref_id = t.id AND i18n.lang = 'en'Is it really what you wanted or it's an unexpected side-effect ? |
|
yes, new version of clickhouse corrupts number of queries:
throws error: Not equi-join ON expression: 1 = b. No columns in one of equality side.: While processing 1 = b whats wrong in joining on value=column? works in any other database |
|
@jobosk Seems that it's different case. Now conditions that is not in the form We considered to support such conditions in UPD: Comment by @jobosk to that I answered had been deleted from this thread |
Sorry! I deleted my comment after updating to 21.3.2.5, and not having an issue with that version I assumed it was fixed afterwards. Didn't see your reply, the page must've been cached. For anyone who wonders what it was about: I had a problem after migrating to server v21.1.7.1 using conditions like r1.col1 = 'string' in the ON section of my JOIN. Since I deleted my comment and don't have access to the code right now, I'm not sure wether it was an INNER JOIN and it was indeed a problem with that version later fixed, or if wasn't, in which case I'm not really sure why it does work with later versions. I'll let you know as soon as I have access to the code. |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix crash in case of not equi-join ON expression in RIGH|FULL JOIN.
Fixes #14627
Related to #8802