Repository navigation
Fix a bug during the interval type conversion - #105058
Conversation
|
Workflow [PR], commit [422e985] Summary: ✅
AI ReviewSummaryThis PR fixes interval-to-interval Final VerdictStatus: ✅ Approve |
|
This was fixed by #105146. Let's update the branch. |
…m/ClickHouse/ClickHouse into yarik/fix-interval-conversion-bug
|
Dear @nihalzp, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
Add focused regression coverage for the `Month`/`Quarter`/`Year` tail of
`IntervalKind`, which is controlled by the same shifted forward-conversion
loop in `ConvertImpl` but was previously untested: `Week`/`Month`/`Quarter`/
`Year` adjacent conversions in both directions and multi-step `Month`->`Year`
and `Week`->`Year`. These cases produced wrong results before the fix (e.g.
`CAST(toIntervalMonth(3) AS IntervalQuarter)` returned `0` instead of `1`).
Also add `-- { echo }` so the reference file shows each query next to its
result, as requested in review.
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 7/7 (100.00%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 3 line(s) · Uncovered code |
|
Hi — this looks like a backport candidate for |
…al-conversion-bug Fix a bug during the interval type conversion
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixes bugs when using CAST from smaller to larger interval units. Closes #104986
Version info
26.7.1.63