Skip to content

fix: merge(): hostName() constness mismatch causes ILLEGAL_COLUMN with remote()/Distributed child tables - #93286

Merged
alexey-milovidov merged 3 commits into
ClickHouse:masterfrom
withlin:merge-hostname-constness
Jan 17, 2026
Merged

alexey-milovidov merged 3 commits into
ClickHouse:masterfrom
withlin:merge-hostname-constness

Conversation

@withlin

@withlin withlin commented Dec 31, 2025 •

Copy link
Copy Markdown
Contributor

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release))

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

Fix the Merge table engine query planning with the analyzer that could throw ILLEGAL_COLUMN for hostName() when merging local and remote/Distributed tables. Closes #92059.

Version info

  • Merged into: 26.1.1.605

@CLAassistant

CLAassistant commented Dec 31, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@withlin withlin changed the title fix: cannot convert column hostName() bug fix: merge(): hostName() constness mismatch causes ILLEGAL_COLUMN with remote()/Distributed child tables Dec 31, 2025
@alexey-milovidov alexey-milovidov added the can be tested Allows running workflows for external contributors label Jan 1, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jan 1, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [7322996]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_binary, 4/5) failure
test_peak_memory_usage/test.py::test_clickhouse_client_max_peak_memory_usage_distributed FAIL cidb, issue
Integration tests (arm_binary, distributed plan, 2/4) failure
test_userspace_page_cache/test.py::test_size_adjustment FAIL cidb, issue
Integration tests (amd_binary, 5/5) error

@withlin

withlin commented Jan 1, 2026

Copy link
Copy Markdown
Contributor Author

hi @alexey-milovidov PTAL! thanks

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks fine, thanks!

@alexey-milovidov alexey-milovidov self-assigned this Jan 2, 2026
@alexey-milovidov
alexey-milovidov merged commit fb4b979 into ClickHouse:master Jan 17, 2026
124 of 127 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 Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors 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.

Cannot convert column hostName() because it is non constant in source stream but must be constant in result

4 participants