You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/06/08 16:46:22 UTC
[GitHub] [spark] cloud-fan commented on a change in pull request #32824: [SPARK-30993][FOLLOWUP][SQL] Refactor LocalDateTimeUDT as YearUDT in UserDefinedTypeSuite
cloud-fan commented on a change in pull request #32824:
URL: https://github.com/apache/spark/pull/32824#discussion_r647619407
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/UserDefinedTypeSuite.scala
##########
@@ -258,19 +258,17 @@ class UserDefinedTypeSuite extends QueryTest with SharedSparkSession with Parque
test("SPARK-30993: UserDefinedType matched to fixed length SQL type shouldn't be corrupted") {
def concatFoo(a: FooWithDate, b: FooWithDate): FooWithDate = {
- FooWithDate(b.date, a.s + b.s, a.i)
+ FooWithDate(b.year, a.s + b.s, a.i)
}
- UDTRegistration.register(classOf[LocalDateTime].getName, classOf[LocalDateTimeUDT].getName)
+ UDTRegistration.register(classOf[Year].getName, classOf[YearUDT].getName)
Review comment:
shall we unregister it after test finishes?
--
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org