cloud-fan commented on a change in pull request #30516:
URL: https://github.com/apache/spark/pull/30516#discussion_r532422865



##########
File path: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala
##########
@@ -1023,6 +1023,21 @@ class DateExpressionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
     checkEvaluation(MakeDate(Literal(2019), Literal(7), Literal(32)), null)
   }
 
+  test("ANSI mode: creating values of DateType via make_date") {

Review comment:
       We can simplify the tests by merging it with `creating values of 
DateType via make_date`
   ```
   test("creating values of DateType via make_date") {
     Seq(true, false).foreach { ansi =>
        withSQLConf(SQLConf.ANSI_ENABLED.key -> ansi.toString) {
         ...
       }
      }
   
     // ansi test
     checkExceptionInExpression...
     ...
     // non-ansi test
     checkEvaluation(..., null)
     ...
   }
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to