Skip to content

translateUTF8: Fix slightly incorrect error message - #104817

Merged
leshikus merged 3 commits into
masterfrom
fix-104786
May 20, 2026
Merged

leshikus merged 3 commits into
masterfrom
fix-104786

Conversation

@rschu1ze

@rschu1ze rschu1ze commented May 13, 2026 •

Copy link
Copy Markdown
Member

The error message now complains about the code point count instead of the byte count.

Resolves: #104786

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Version info

  • Merged into: 26.5.1.918

The error message now complains about the code point count instead of
the byte count.
@clickhouse-gh

clickhouse-gh Bot commented May 13, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [9f6ce1b]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel) FAIL
01710_projection_additional_filters FAIL cidb IGNORED
Finish Workflow FAIL
python3 ./ci/jobs/scripts/workflow_hooks/check_report_messages.py FAIL IGNORED

AI Review

Summary

This PR updates translateUTF8 exception formatting to report the same size metric used by validation logic (code point count for UTF-8, byte count for ASCII path), which removes a misleading user-facing contradiction in the error text. The change is narrowly scoped and consistent with surrounding logic; no correctness, safety, or performance issues were found in the current diff.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label May 13, 2026
@Algunenano Algunenano self-assigned this May 13, 2026
@Algunenano

Copy link
Copy Markdown
Member

Fuzzer issue fixed here: #104858

@alexey-milovidov

Copy link
Copy Markdown
Member

This was fixed by #105146. Let's update the branch.

@clickhouse-gh

clickhouse-gh Bot commented May 19, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.10% 84.10% +0.00%
Functions 91.40% 91.40% +0.00%
Branches 76.50% 76.60% +0.10%

Changed lines: 100.00% (4/4) · Uncovered code

Full report · Diff report

@rschu1ze

Copy link
Copy Markdown
Member Author

01710_projection_additional_filters: #104219 (fixed)

@leshikus
leshikus added this pull request to the merge queue May 20, 2026
Merged via the queue into master with commit 0797c0c May 20, 2026
162 of 165 checks passed
@leshikus
leshikus deleted the fix-104786 branch May 20, 2026 22:11
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label May 20, 2026
DavidHe-2008 pushed a commit to DavidHe-2008/ClickHouse that referenced this pull request Jun 1, 2026
`translateUTF8`: Fix slightly incorrect error message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog 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.

translateUTF8 error message reports byte sizes instead of code point counts

5 participants