GitHub user cloud-fan opened a pull request:
https://github.com/apache/spark/pull/9810
[SPARK-11819][SQL] nice error message for missing encoder
before this PR, when users try to get an encoder for an un-supported class,
they will only get a very simple error message like `Encoder for type xxx is
not supported`.
After this PR, the error message become more friendly, for example:
```
No Encoder found for abc.xyz.NonEncodable
- field (class: "abc.xyz.NonEncodable", name: "a")
- field (class: "abc.xyz.MyClass", name: "b")
- root object (class: "abc.xyz.AnotherClass")
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cloud-fan/spark error-message
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/9810.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #9810
----
commit 3d9fcc9c738bb0eb65fcf4a660299139d559e310
Author: Wenchen Fan <[email protected]>
Date: 2015-11-18T15:02:44Z
nice error message for missing encoder
----
---
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]