diff options
author | Cheng Lian <lian@databricks.com> | 2016-04-19 09:37:00 -0700 |
---|---|---|
committer | Yin Huai <yhuai@databricks.com> | 2016-04-19 09:37:00 -0700 |
commit | 5e360c93bed9d4f9250cf79bbcebd8552557f548 (patch) | |
tree | ce3a791360d08ebedd126e91764ca008a304058b /sql/hive-thriftserver/src | |
parent | 3d46d796a3a2b60b37dc318652eded5e992be1e5 (diff) | |
download | spark-5e360c93bed9d4f9250cf79bbcebd8552557f548.tar.gz spark-5e360c93bed9d4f9250cf79bbcebd8552557f548.tar.bz2 spark-5e360c93bed9d4f9250cf79bbcebd8552557f548.zip |
[SPARK-13681][SPARK-14458][SPARK-14566][SQL] Add back once removed CommitFailureTestRelationSuite and SimpleTextHadoopFsRelationSuite
## What changes were proposed in this pull request?
These test suites were removed while refactoring `HadoopFsRelation` related API. This PR brings them back.
This PR also fixes two regressions:
- SPARK-14458, which causes runtime error when saving partitioned tables using `FileFormat` data sources that are not able to infer their own schemata. This bug wasn't detected by any built-in data sources because all of them happen to have schema inference feature.
- SPARK-14566, which happens to be covered by SPARK-14458 and causes wrong query result or runtime error when
- appending a Dataset `ds` to a persisted partitioned data source relation `t`, and
- partition columns in `ds` don't all appear after data columns
## How was this patch tested?
`CommitFailureTestRelationSuite` uses a testing relation that always fails when committing write tasks to test write job cleanup.
`SimpleTextHadoopFsRelationSuite` uses a testing relation to test general `HadoopFsRelation` and `FileFormat` interfaces.
The two regressions are both covered by existing test cases.
Author: Cheng Lian <lian@databricks.com>
Closes #12179 from liancheng/spark-13681-commit-failure-test.
Diffstat (limited to 'sql/hive-thriftserver/src')
0 files changed, 0 insertions, 0 deletions