Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/23062#discussion_r234834269
--- Diff:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/ScalaReflectionSuite.scala
---
@@ -109,6 +109,64 @@ object TestingUDT {
}
}
+/** An example derived from Twitter/Scrooge codegen for thrift */
+object ScroogeLikeExample {
+ def apply(
+ x: Int
+ ): ScroogeLikeExample =
+ new Immutable(
+ x
+ )
+
+ def unapply(_item: ScroogeLikeExample): _root_.scala.Option[Int] =
_root_.scala.Some(_item.x)
--- End diff --
why qualify as `_root_.scala.` here?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]