Github user viirya commented on the issue:
https://github.com/apache/spark/pull/18416
scala.collection.immutable.HashSet
scala> val t =
ScalaReflection.localTypeOf[scala.collection.immutable.HashSet[Int]]
t: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type =
scala.collection.immutable.HashSet[Int]
scala> val companion =
t.normalize.typeSymbol.companionSymbol.typeSignature
warning: there were two deprecation warnings; re-run with -deprecation
for details
companion: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type
= scala.collection.immutable.HashSet.type
scala> val cls = companion.declaration(newTermName("newBuilder"))
warning: there were two deprecation warnings; re-run with -deprecation
for details
cls: org.apache.spark.sql.catalyst.ScalaReflection.universe.Symbol =
<none>
scala.collection.mutable.HashSet
scala> val t =
ScalaReflection.localTypeOf[scala.collection.mutable.HashSet[Int]]
t: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type =
scala.collection.mutable.HashSet[Int]
scala> val companion =
t.normalize.typeSymbol.companionSymbol.typeSignature
warning: there were two deprecation warnings; re-run with -deprecation
for details
companion: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type
= scala.collection.mutable.HashSet.type
scala> val cls = companion.declaration(newTermName("newBuilder"))
warning: there were two deprecation warnings; re-run with -deprecation
for details
cls: org.apache.spark.sql.catalyst.ScalaReflection.universe.Symbol =
<none>
scala.collection.immutable.Set
scala> val t =
ScalaReflection.localTypeOf[scala.collection.immutable.Set[Int]]
t: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type =
scala.collection.immutable.Set[Int]
scala> val companion =
t.normalize.typeSymbol.companionSymbol.typeSignature
warning: there were two deprecation warnings; re-run with -deprecation
for details
companion: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type
= scala.collection.immutable.Set.type
scala> val cls = companion.declaration(newTermName("newBuilder"))
warning: there were two deprecation warnings; re-run with -deprecation
for details
cls: org.apache.spark.sql.catalyst.ScalaReflection.universe.Symbol =
<none>
scala.collection.mutable.Set
scala> val t =
ScalaReflection.localTypeOf[scala.collection.mutable.Set[Int]]
t: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type =
scala.collection.mutable.Set[Int]
scala> val companion =
t.normalize.typeSymbol.companionSymbol.typeSignature
warning: there were two deprecation warnings; re-run with -deprecation
for details
companion: org.apache.spark.sql.catalyst.ScalaReflection.universe.Type
= scala.collection.mutable.Set.type
scala> val cls = companion.declaration(newTermName("newBuilder"))
warning: there were two deprecation warnings; re-run with -deprecation
for details
cls: org.apache.spark.sql.catalyst.ScalaReflection.universe.Symbol =
<none>
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]