MaxGekk commented on a change in pull request #33709:
URL: https://github.com/apache/spark/pull/33709#discussion_r688869845
##########
File path:
mllib/src/test/scala/org/apache/spark/ml/source/image/ImageFileFormatSuite.scala
##########
@@ -95,14 +96,14 @@ class ImageFileFormatSuite extends SparkFunSuite with
MLlibTestSparkContext {
.collect()
assert(Set(result: _*) === Set(
- Row("29.5.a_b_EGDP022204.jpg", "kittens", "2018-01"),
Review comment:
After the changes, the partition value `2018-01` became a valid date
value. New partition formatter can parse it as 2018-01-01, see patterns that
supported by the CAST expression:
https://github.com/apache/spark/blob/ed0e351f05ac6edc132c3a630206b2031c419e1c/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala#L228
As a consequence, Spark infers DateType as the type of partition values. And
finally, it converts all strings to the type.
--
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]