diff options
author | Takeshi Yamamuro <yamamuro@apache.org> | 2017-03-16 08:50:01 +0800 |
---|---|---|
committer | Wenchen Fan <wenchen@databricks.com> | 2017-03-16 08:50:01 +0800 |
commit | 21f333c635465069b7657d788052d510ffb0779a (patch) | |
tree | d574b69f428ba5586d88475592f0e7775955dc32 /.travis.yml | |
parent | fc9314671c8a082ae339fd6df177a2b684c65d40 (diff) | |
download | spark-21f333c635465069b7657d788052d510ffb0779a.tar.gz spark-21f333c635465069b7657d788052d510ffb0779a.tar.bz2 spark-21f333c635465069b7657d788052d510ffb0779a.zip |
[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`.
Author: Takeshi Yamamuro <yamamuro@apache.org>
Closes #17188 from maropu/SPARK-19751.
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions