Skip to content

Fix joinGet error message#87279

Merged
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
spinojara:joingeterror
Oct 16, 2025
Merged

Fix joinGet error message#87279
alexey-milovidov merged 2 commits intoClickHouse:masterfrom
spinojara:joingeterror

Conversation

@spinojara
Copy link
Copy Markdown
Contributor

@spinojara spinojara commented Sep 18, 2025

Changelog category (leave one):

  • Improvement

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Improve joinGet error message so that it properly states that the number of join_keys is not the same as the number of right_table_keys.

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@george-larionov george-larionov self-assigned this Sep 18, 2025
Copy link
Copy Markdown
Member

@george-larionov george-larionov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @spinojara. First off, thanks for opening a PR! We love when people contribute to ClickHouse :).

The error message you have modified is not actually the full story. Take a look at this fiddle, you can see that the two error messages for the queries at the bottom are similar but not the same. For the top query, we get an error message that is correct and clearly does not match the code you edited. We don’t need to worry about this error message, since it is working fine, but it does give us a clue as to what’s going on.

The last query outputs the error message that you changed. So this error message is only hit when the arguments match the function signature, but the number of ‘right table’ key columns does not match the number of provided join_keys, otherwise the function will either work or hit some different error.

Please take a look at my other comments and make the necessary changes, let me know if you have any questions/concerns.

@george-larionov
Copy link
Copy Markdown
Member

george-larionov commented Sep 18, 2025

Also, please update the changelog entry in the PR comment to be a bit more descriptive.

@spinojara
Copy link
Copy Markdown
Contributor Author

You are right, that makes it even clearer. I have updated the patch and the changelog entry. I still need to wait for Axis Communications to accept the CLA.

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Sep 22, 2025

Workflow [PR], commit [2563303]

Summary:
15 failures out of 118 shown:

job_name test_name status info comment
Config Workflow failure
can_be_trusted failure
Dockers Build (amd) dropped
Dockers Build (arm) dropped
Dockers Build (multiplatform manifest) dropped
Style check dropped
Docs check dropped
Fast test dropped
Build (arm_tidy) dropped
Build (amd_debug) dropped
Build (amd_release) dropped
Build (amd_asan) dropped
Build (amd_tsan) dropped
Build (amd_msan) dropped
Build (amd_ubsan) dropped
Build (amd_binary) dropped

@clickhouse-gh clickhouse-gh bot added the pr-improvement Pull request with some product improvements label Sep 22, 2025
@george-larionov
Copy link
Copy Markdown
Member

You are right, that makes it even clearer. I have updated the patch and the changelog entry. I still need to wait for Axis Communications to accept the CLA.

It looks good now! Let's see what the tests say, although I believe they will fail until the CLA is signed/approved. See if you can either sign it again or there seems to be a link to 'recheck' it in the CLAassistant comment.

Copy link
Copy Markdown
Member

@george-larionov george-larionov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me now! Let me know if you continue to have issues with the CLA, I can look into it.

@AntonFriberg
Copy link
Copy Markdown
Contributor

@george-larionov Sorry for the delay. @spinojara joined my team and was quick to contribute upstream which I am super happy about. However, it is the first time that our company has contributed to ClickHouse and our legal team needs to review the CLA in order for us to approve. I am doing everything I can to speed up the process. Sorry for the delay!

@george-larionov
Copy link
Copy Markdown
Member

@george-larionov Sorry for the delay. @spinojara joined my team and was quick to contribute upstream which I am super happy about. However, it is the first time that our company has contributed to ClickHouse and our legal team needs to review the CLA in order for us to approve. I am doing everything I can to speed up the process. Sorry for the delay!

No problem Anton, there is no rush at all from our end!

Copy link
Copy Markdown
Member

@alexey-milovidov alexey-milovidov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change does not require CLA.

@alexey-milovidov alexey-milovidov merged commit 0b8b0ec into ClickHouse:master Oct 16, 2025
118 of 121 checks passed
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 16, 2025
@spinojara
Copy link
Copy Markdown
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-improvement Pull request with some product improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants