Skip to content

Fix sending replicated columns as external data in remote query - #89997

Merged
Avogar merged 6 commits into
ClickHouse:masterfrom
Avogar:replicated-column-more-fixes
Nov 21, 2025
Merged

Avogar merged 6 commits into
ClickHouse:masterfrom
Avogar:replicated-column-more-fixes

Conversation

@Avogar

@Avogar Avogar commented Nov 13, 2025 •

Copy link
Copy Markdown
Member

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 possible crash during remote query with ARRAY JOIN inside IN and enabled enable_lazy_columns_replication setting. Resolves #90361

@clickhouse-gh

clickhouse-gh Bot commented Nov 13, 2025 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [43dff1d]

Summary: ❌

job_name test_name status info comment
Build (amd_compat) failure
Cmake configuration failure cidb
Stress test (amd_debug) failure
Server died FAIL cidb
Hung check failed, possible deadlock found (see hung_check.log) FAIL cidb
Killed by signal (in clickhouse-server.log) FAIL cidb
Fatal message in clickhouse-server.log (see fatal_messages.txt) FAIL cidb
Killed by signal (output files) FAIL cidb
Found signal in gdb.log FAIL cidb
BuzzHouse (amd_debug) failure
Logical error: 'Inconsistent AST formatting: the query: FAIL cidb
BuzzHouse (amd_ubsan) failure
/home/ubuntu/actions-runner/_work/ClickHouse/ClickHouse/src/IO/VarInt.h:32:5: runtime error: store to null pointer of type 'char' FAIL cidb

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Nov 13, 2025
@nikitamikhaylov nikitamikhaylov self-assigned this Nov 13, 2025
current_offsets.resize(num_dimensions);

auto serialization = IDataType::getSerialization(*requested_column);
auto serialization_info = requested_column->type->getSerializationInfo(*res_columns[i]);

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.

Tests showed that a type might be nullptr.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It's actually res_columns[i] might be nullptr, I added a check for that

@nikitamikhaylov nikitamikhaylov Nov 13, 2025 •

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.

Now it says that res_columns might not contain the index i...

@Avogar

Avogar commented Nov 20, 2025

Copy link
Copy Markdown
Member Author

@Avogar

Avogar commented Nov 20, 2025

Copy link
Copy Markdown
Member Author

New test failed in the Sync, investigating

@Avogar

Avogar commented Nov 21, 2025 •

Copy link
Copy Markdown
Member Author

@Avogar
Avogar added this pull request to the merge queue Nov 21, 2025
Merged via the queue into ClickHouse:master with commit f9e7dd7 Nov 21, 2025
@Avogar
Avogar deleted the replicated-column-more-fixes branch November 21, 2025 14:29
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 21, 2025
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Nov 21, 2025
robot-clickhouse added a commit that referenced this pull request Nov 21, 2025
robot-clickhouse added a commit that referenced this pull request Nov 21, 2025
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Nov 21, 2025
clickhouse-gh Bot added a commit that referenced this pull request Nov 21, 2025
Backport #89997 to 25.11: Fix sending replicated columns as external data in remote query
clickhouse-gh Bot added a commit that referenced this pull request Nov 21, 2025
Backport #89997 to 25.10: Fix sending replicated columns as external data in remote query
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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.

Logical error: 'Bad cast from type DB::ColumnReplicated to DB::ColumnNullable'

6 participants