Skip to content

Fix NULL values being silently converted to empty strings - #107532

Merged
Ergus merged 13 commits into
ClickHouse:masterfrom
Ergus:Fix_SE_7969
Jul 1, 2026
Merged

Ergus merged 13 commits into
ClickHouse:masterfrom
Ergus:Fix_SE_7969

Conversation

@Ergus

@Ergus Ergus commented Jun 15, 2026 •

Copy link
Copy Markdown
Member

Fix a regression where Arrow/ORC NULL values are silently converted to empty strings (or other default values) when inserting into a LowCardinality(Nullable(...)) column.

Changelog category (leave one):

  • Critical Bug Fix (crash, data loss, RBAC)

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

Fix NULL values being silently converted to empty strings when inserting Arrow/ORC data into a LowCardinality(Nullable(...)) column. This was a regression introduced in 26.5.

Caused by: #103113

Version info

  • Merged into: 26.7.1.319 (included in 26.7 and later)
  • Backported to: 26.6.2.19

@clickhouse-gh

clickhouse-gh Bot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [d6c304e]

Summary: ✅


AI Review

Summary

The PR fixes Arrow/ORC conversion so physical NULLs are preserved when the target type hint is LowCardinality(Nullable(...)), instead of being read through a non-nullable path and converted to defaults. The code change is narrowly scoped to the nullable-read decision and the added stateless coverage exercises Arrow, ORC, and legacy ORC reads with physical NULLs.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! labels Jun 15, 2026
@scanhex12 scanhex12 self-assigned this Jun 15, 2026
@Ergus
Ergus enabled auto-merge June 29, 2026 20:44
@clickhouse-gh

clickhouse-gh Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 85.40% 85.40% +0.00%
Functions 92.70% 92.60% -0.10%
Branches 77.70% 77.70% +0.00%

Changed lines: Changed C/C++ lines covered: 6/6 (100.00%) · Uncovered code

Full report · Diff report

@Ergus
Ergus added this pull request to the merge queue Jul 1, 2026
Merged via the queue into ClickHouse:master with commit d584c4a Jul 1, 2026
174 checks passed
@Ergus
Ergus deleted the Fix_SE_7969 branch July 1, 2026 04:30
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jul 1, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 1, 2026
Ergus added a commit that referenced this pull request Jul 1, 2026
Cherry pick #107532 to 26.4: Fix NULL values being silently converted to empty strings
robot-clickhouse added a commit that referenced this pull request Jul 1, 2026
Ergus added a commit that referenced this pull request Jul 1, 2026
Cherry pick #107532 to 26.3: Fix NULL values being silently converted to empty strings
robot-clickhouse added a commit that referenced this pull request Jul 1, 2026
@groeneai groeneai mentioned this pull request Jul 1, 2026
1 task done
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jul 1, 2026
clickhouse-gh Bot pushed a commit that referenced this pull request Jul 1, 2026
clickhouse-gh Bot added a commit that referenced this pull request Jul 1, 2026
Backport #107532 to 26.6: Fix NULL values being silently converted to empty strings
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Fix NULL values being silently converted to empty strings
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-critical-bugfix pr-must-backport Pull request should be backported intentionally. Use this label with great care! 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 v26.5-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants