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

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-2.0 by this push:
     new 09da927cc3b [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)
09da927cc3b is described below

commit 09da927cc3b5719b5839b96ca94814e860aebabd
Author: Guangdong Liu <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to