GitHub user maropu opened a pull request:
https://github.com/apache/spark/pull/17188
[SPARK-19751][SQL] Throw an exception if bean class has one's own class in
fields
## What changes were proposed in this pull request?
The current master throws `StackOverflowError` in
`createDataFrame`/`createDataset` if bean has one's own class in fields;
```
public class SelfClassInFieldBean implements Serializable {
private SelfClassInFieldBean child;
...
}
```
This pr added code to throw `UnsupportedOperationException` in that case as
soon as possible.
## How was this patch tested?
Added tests in `JavaDataFrameSuite` and `JavaDatasetSuite`.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maropu/spark SPARK-19751
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17188.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 #17188
----
commit c09298ef61ea763d8f73bfcb6cbfba1f5c14c30e
Author: Takeshi Yamamuro <[email protected]>
Date: 2017-03-07T08:39:23Z
Throw an exception if bean class has one's own class as field
----
---
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]