Repository navigation
Fix logical error in parseDateTime with non-ASCII input bytes - #106856
Conversation
`String(expected, 1)` and `String(*cur, 1)` in error messages inside `assertChar` and `assertNumber` resolved to `std::string(size_t count, char ch)` with the char value as the count. When the char had its high bit set (e.g. `\x82` = -126 signed), the implicit conversion to `size_t` wrapped to ~2^64, causing `std::length_error` which surfaced as a logical error. Fix by swapping arguments to `String(1, ch)` so the count is always 1. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Workflow [PR], commit [1d78978] Summary: ❌
AI ReviewSummaryThis PR fixes Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 11/13 (84.62%) | Lost baseline coverage: none · Uncovered code |
Algunenano
left a comment
There was a problem hiding this comment.
LGTM. I did not find any similar issues in the code. We could avoid using String here and just give the hex code or similar (since most of the time it will be something not printable) but not needed
|
📊 Cloud Performance Report ✅ AI verdict: This PR is a one-line correctness fix: it corrects the argument order of a String(count, char) construction inside parseDateTime's parse-failure error message, plus adds a regression test. That code only runs when parseDateTime hits a malformed input and throws, so it cannot affect the execution path of the four flagged queries (ClickBench Q22/Q23, TPC-H Q7/Q20), none of which call parseDateTime. All four flagged improvements have been downgraded to not-sure as run-to-run variance rather than real PR effects; Q22 and Q20 in particular had noisy underlying measurements. No action needed on the perf deltas. clickbenchFlagged queries (2 of 43)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_officialFlagged queries (2 of 22)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. Debug info
|
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix logical error in
parseDateTimewith non-ASCII input bytes.Version info
26.6.1.812