This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 588d4c150fc [bugfix](DateTimeV2Literal) The start and end dates of 
daylight saving time vary from year to year, which can lead to different test 
results at different times (#26083)
588d4c150fc is described below

commit 588d4c150fcc82d2332329dae0a7807767cb6918
Author: Guangdong Liu <liug...@gmail.com>
AuthorDate: Tue Oct 31 13:39:38 2023 +0800

    [bugfix](DateTimeV2Literal) The start and end dates of daylight saving time 
vary from year to year, which can lead to different test results at different 
times (#26083)
    
    The start and end dates of daylight saving time vary depending on the year. 
Daylight saving time usually starts on the last Sunday in March and ends on the 
last Sunday in October. During this time, the offset for Europe/London is 
UTC+1. Outside of daylight saving time, the Europe/London offset is UTC+0.
---
 .../doris/nereids/trees/expressions/literal/DateTimeLiteralTest.java    | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/fe/fe-core/src/test/java/org/apache/doris/nereids/trees/expressions/literal/DateTimeLiteralTest.java
 
b/fe/fe-core/src/test/java/org/apache/doris/nereids/trees/expressions/literal/DateTimeLiteralTest.java
index 3347b423529..10e578a812c 100644
--- 
a/fe/fe-core/src/test/java/org/apache/doris/nereids/trees/expressions/literal/DateTimeLiteralTest.java
+++ 
b/fe/fe-core/src/test/java/org/apache/doris/nereids/trees/expressions/literal/DateTimeLiteralTest.java
@@ -20,6 +20,7 @@ package org.apache.doris.nereids.trees.expressions.literal;
 import org.apache.doris.nereids.types.DateTimeV2Type;
 
 import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Disabled;
 import org.junit.jupiter.api.Test;
 
 import java.util.function.Consumer;
@@ -131,6 +132,7 @@ class DateTimeLiteralTest {
     }
 
     @Test
+    @Disabled("Test results can change over time")
     void testZoneOrOffsetRight() {
         java.util.function.BiConsumer<DateTimeV2Literal, Long> assertHour = 
(dateTimeV2Literal, expectHour) -> {
             Assertions.assertEquals(dateTimeV2Literal.hour, expectHour);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to