Github user JoshRosen commented on the pull request:
https://github.com/apache/spark/pull/6222#issuecomment-102920647
Based on the last set of test failures, it looks like there's another other
corner-case where the actual data types don't match the declared ones.
**JavaHashingTFSuite.hasingTF**:
```
sbt.ForkMain$ForkError: java.lang.Integer cannot be cast to java.lang.Double
at scala.runtime.BoxesRunTime.unboxToDouble(BoxesRunTime.java:119)
at
org.apache.spark.sql.catalyst.expressions.GenericRow.getDouble(rows.scala:93)
at
org.apache.spark.sql.catalyst.CatalystTypeConverters$DoubleConverter$.toScalaImpl(CatalystTypeConverters.scala:303)
at
org.apache.spark.sql.catalyst.CatalystTypeConverters$DoubleConverter$.toScalaImpl(CatalystTypeConverters.scala:302)
at
org.apache.spark.sql.catalyst.CatalystTypeConverters$CatalystTypeConverter.toScala(CatalystTypeConverters.scala:87)
at
org.apache.spark.sql.catalyst.CatalystTypeConverters$StructConverter.toScala(CatalystTypeConverters.scala:235)
at
org.apache.spark.sql.catalyst.CatalystTypeConverters$StructConverter.toScala(CatalystTypeConverters.scala:202)
at
org.apache.spark.sql.catalyst.CatalystTypeConverters$$anonfun$createToScalaConverter$1.apply(CatalystTypeConverters.scala:360)
at
org.apache.spark.sql.execution.SparkPlan$$anonfun$executeTake$2.apply(SparkPlan.scala:150)
at
org.apache.spark.sql.execution.SparkPlan$$anonfun$executeTake$2.apply(SparkPlan.scala:150)
at
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at
scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at
scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:108)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:108)
at
org.apache.spark.sql.execution.SparkPlan.executeTake(SparkPlan.scala:150)
at
org.apache.spark.sql.execution.Limit.executeCollect(basicOperators.scala:125)
at org.apache.spark.sql.DataFrame.collect(DataFrame.scala:1157)
at org.apache.spark.sql.DataFrame.head(DataFrame.scala:1091)
at org.apache.spark.sql.DataFrame.take(DataFrame.scala:1150)
at
org.apache.spark.ml.feature.JavaHashingTFSuite.hashingTF(JavaHashingTFSuite.java:76)
```
It also looks like there are some cases in HadoopFSRelationTest where we
expect to receive a string but receive an Integer instead. I'll take a closer
look at these cases to see whether this indicates a bug or whether we should
just call toString() on any non-string type that we receive.
---
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]