diff options
author | gatorsmile <gatorsmile@gmail.com> | 2016-09-07 14:03:14 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2016-09-07 14:03:14 -0700 |
commit | b230fb92a53375b648fa0f9e1d852270156d79e5 (patch) | |
tree | 5a3e2c7acb3cc228030738d870c408f82138a382 /sql | |
parent | 649fa4bf1d6fc9271ae56b6891bc93ebf57858d1 (diff) | |
download | spark-b230fb92a53375b648fa0f9e1d852270156d79e5.tar.gz spark-b230fb92a53375b648fa0f9e1d852270156d79e5.tar.bz2 spark-b230fb92a53375b648fa0f9e1d852270156d79e5.zip |
[SPARK-17052][SQL] Remove Duplicate Test Cases auto_join from HiveCompatibilitySuite.scala
### What changes were proposed in this pull request?
The original [JIRA Hive-1642](https://issues.apache.org/jira/browse/HIVE-1642) delivered the test cases `auto_joinXYZ` for verifying the results when the joins are automatically converted to map-join. Basically, most of them are just copied from the corresponding `joinXYZ`.
After comparison between `auto_joinXYZ` and `joinXYZ`, below is a list of duplicate cases:
```
"auto_join0",
"auto_join1",
"auto_join10",
"auto_join11",
"auto_join12",
"auto_join13",
"auto_join14",
"auto_join14_hadoop20",
"auto_join15",
"auto_join17",
"auto_join18",
"auto_join2",
"auto_join20",
"auto_join21",
"auto_join23",
"auto_join24",
"auto_join3",
"auto_join4",
"auto_join5",
"auto_join6",
"auto_join7",
"auto_join8",
"auto_join9"
```
We can remove all of them without affecting the test coverage.
### How was this patch tested?
N/A
Author: gatorsmile <gatorsmile@gmail.com>
Closes #14635 from gatorsmile/removeAuto.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala | 50 |
1 files changed, 26 insertions, 24 deletions
diff --git a/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala b/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala index a54d234876..bebcb8f801 100644 --- a/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala +++ b/sql/hive/compatibility/src/test/scala/org/apache/spark/sql/hive/execution/HiveCompatibilitySuite.scala @@ -553,7 +553,32 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter { "union31", "union_date", "varchar_2", - "varchar_join1" + "varchar_join1", + + // These tests are duplicates of joinXYZ + "auto_join0", + "auto_join1", + "auto_join10", + "auto_join11", + "auto_join12", + "auto_join13", + "auto_join14", + "auto_join14_hadoop20", + "auto_join15", + "auto_join17", + "auto_join18", + "auto_join2", + "auto_join20", + "auto_join21", + "auto_join23", + "auto_join24", + "auto_join3", + "auto_join4", + "auto_join5", + "auto_join6", + "auto_join7", + "auto_join8", + "auto_join9" ) /** @@ -573,37 +598,14 @@ class HiveCompatibilitySuite extends HiveQueryFileTest with BeforeAndAfter { "annotate_stats_part", "annotate_stats_table", "annotate_stats_union", - "auto_join0", - "auto_join1", - "auto_join10", - "auto_join11", - "auto_join12", - "auto_join13", - "auto_join14", - "auto_join14_hadoop20", - "auto_join15", - "auto_join17", - "auto_join18", "auto_join19", - "auto_join2", - "auto_join20", - "auto_join21", "auto_join22", - "auto_join23", - "auto_join24", "auto_join25", "auto_join26", "auto_join27", "auto_join28", - "auto_join3", "auto_join30", "auto_join31", - "auto_join4", - "auto_join5", - "auto_join6", - "auto_join7", - "auto_join8", - "auto_join9", "auto_join_nulls", "auto_join_reordering_values", "binary_constant", |