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

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


The following commit(s) were added to refs/heads/master by this push:
     new 462aa7c  [SPARK-36428][TESTS][FOLLOWUP] Revert mistake change to 
DateExpressionsSuite
462aa7c is described below

commit 462aa7cd3cd761b62ed9ea365427d5e816f95c5a
Author: gengjiaan <gengji...@360.cn>
AuthorDate: Thu Aug 19 21:33:21 2021 +0800

    [SPARK-36428][TESTS][FOLLOWUP] Revert mistake change to DateExpressionsSuite
    
    ### What changes were proposed in this pull request?
    https://github.com/apache/spark/pull/33775 commits the debug code mistakely.
    This PR revert the test path.
    
    ### Why are the changes needed?
    Revoke debug code.
    
    ### Does this PR introduce _any_ user-facing change?
     'No'.
    Just adjust test.
    
    ### How was this patch tested?
    Revert non-ansi test path.
    
    Closes #33787 from beliefer/SPARK-36428-followup2.
    
    Authored-by: gengjiaan <gengji...@360.cn>
    Signed-off-by: Gengliang Wang <gengli...@apache.org>
---
 .../apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
 
b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
index d22a95f..5d77bcf 100644
--- 
a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
+++ 
b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
@@ -1161,7 +1161,7 @@ class DateExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
       withSQLConf(SQLConf.TIMESTAMP_TYPE.key -> tsType.toString) {
         val expected = expectedAnswer("2013-07-15 08:15:23.5")
 
-        Seq(true).foreach { ansi =>
+        Seq(true, false).foreach { ansi =>
           withSQLConf(SQLConf.ANSI_ENABLED.key -> ansi.toString) {
             var makeTimestampExpr = MakeTimestamp(
               Literal(2013), Literal(7), Literal(15), Literal(8), Literal(15),

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

Reply via email to