MaxGekk commented on code in PR #50079:
URL: https://github.com/apache/spark/pull/50079#discussion_r1969956302


##########
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:
   I agree, don't need to collect dates backs, just check
   ```
   checkAnswer(spark.createDataFrame(rdd, schema), sql("select 
date'2020-05-13', 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]

Reply via email to