You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2016/01/25 10:22:15 UTC
spark git commit: [SPARK-12932][JAVA API] improved error message for
java type inference failure
Repository: spark
Updated Branches:
refs/heads/master 3adebfc9a -> d8e480521
[SPARK-12932][JAVA API] improved error message for java type inference failure
Author: Andy Grove <an...@gmail.com>
Closes #10865 from andygrove/SPARK-12932.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d8e48052
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d8e48052
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d8e48052
Branch: refs/heads/master
Commit: d8e480521e362bc6bc5d8ebcea9b2d50f72a71b9
Parents: 3adebfc
Author: Andy Grove <an...@gmail.com>
Authored: Mon Jan 25 09:22:10 2016 +0000
Committer: Sean Owen <so...@cloudera.com>
Committed: Mon Jan 25 09:22:10 2016 +0000
----------------------------------------------------------------------
.../scala/org/apache/spark/sql/catalyst/JavaTypeInference.scala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/d8e48052/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/JavaTypeInference.scala
----------------------------------------------------------------------
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/JavaTypeInference.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/JavaTypeInference.scala
index b5de60c..3c3717d 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/JavaTypeInference.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/JavaTypeInference.scala
@@ -406,7 +406,8 @@ object JavaTypeInference {
expressions.Literal(fieldName) :: extractorFor(fieldValue, fieldType) :: Nil
})
} else {
- throw new UnsupportedOperationException(s"no encoder found for ${other.getName}")
+ throw new UnsupportedOperationException(
+ s"Cannot infer type for class ${other.getName} because it is not bean-compliant")
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org