You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
modify year from 2025 to 2026(v3.0.4-hotfix) - #23443
select a,b,c,year(d) from t1;
a b c year(d)
-1 1 1 2026+1 1 1 2024
2 0 0 null
DROP TABLE t1;
CREATE TABLE t1 (a TIMESTAMP);
-INSERT INTO t1 select (utc_timestamp());-INSERT INTO t1 select (utc_timestamp());-INSERT INTO t1 select (utc_timestamp());+INSERT INTO t1 select ('2024-05-20 10:00:00');+INSERT INTO t1 select ('2024-05-20 10:00:01');+INSERT INTO t1 select ('2024-05-20 10:00:02');
SELECT year(a) FROM t1 WHERE a > '2008-01-01';
year(a)
-2026-2026-2026+2024+2024+2024
Apply / Chat
Suggestion importance[1-10]: 7
__
Why: The suggestion correctly identifies a brittle test that requires yearly manual updates and proposes a robust solution by using a fixed timestamp. This significantly improves test maintainability by addressing the root cause of the issue, rather than just patching the symptom as the PR does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
What type of PR is this?
Which issue(s) this PR fixes:
modify year from 2025 to 2026
issue ##23442
What this PR does / why we need it:
modify year from 2025 to 2026
PR Type
Tests
Description
Update test result expectations from 2025 to 2026
Modify UTC timestamp function test outputs
Align test cases with current year expectations
Diagram Walkthrough
File Walkthrough
func_datetime_utc_timestamp.result
Update UTC timestamp test year expectationstest/distributed/cases/function/func_datetime_utc_timestamp.result
test cases
values
values