cloud-fan commented on code in PR #50079:
URL: https://github.com/apache/spark/pull/50079#discussion_r1969891707
##########
sql/core/src/test/scala/org/apache/spark/sql/DatasetSuite.scala:
##########
@@ -2779,6 +2779,23 @@ class DatasetSuite extends QueryTest
}
}
+ test("SPARK-51312: createDataFrame should work with both Date and
LocalDate") {
+ val testCases = Seq(
+ ("true", Array(Row(java.time.LocalDate.of(2020, 5, 13)),
+ Row(java.time.LocalDate.of(2020, 5, 13)))),
Review Comment:
oh it's already this way, but why do we need the `testCases`? The expected
result is simply `sql("SELECT DATE'2020-05-13', ...")`.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]