Skip to content
Snippets Groups Projects
Commit d8e48052 authored by Andy Grove's avatar Andy Grove Committed by Sean Owen
Browse files

[SPARK-12932][JAVA API] improved error message for java type inference failure

Author: Andy Grove <andygrove73@gmail.com>

Closes #10865 from andygrove/SPARK-12932.
parent 3adebfc9
No related branches found
No related tags found
No related merge requests found
......@@ -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")
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment