[SPARK-18045][SQL][TESTS] Move HiveDataFrameAnalyticsSuite to package sql#15582
[SPARK-18045][SQL][TESTS] Move HiveDataFrameAnalyticsSuite to package sql#15582jiangxb1987 wants to merge 3 commits intoapache:masterfrom
HiveDataFrameAnalyticsSuite to package sql#15582Conversation
|
|
||
| test("rollup") { | ||
| checkAnswer( | ||
| testData.rollup($"a" + $"b", $"b").agg(sum($"a" - $"b")), |
There was a problem hiding this comment.
Rollup/Cube functions have been tested in DataFrameAggregateSuite.
|
Test build #67332 has finished for PR 15582 at commit
|
|
Actually can we move these tests into a query file test? In sql/core/src/test/resources/sql-tests and check SQLQueryTestSuite |
|
@rxin I've moved the testcases added in this PR to an query file test, do we need to move other test cases for |
|
It'd be great to move those as well! |
|
Test build #67404 has finished for PR 15582 at commit
|
|
Test build #67403 has finished for PR 15582 at commit
|
|
I'm going to merge this first. Please submit a follow-up pr to move other ones. |
|
(Actually I'm on an airplane and the internet is not good enough to merge patches). |
|
cc @cloud-fan can you merge this? |
|
Merging to master. Thanks! Ping me for the follow-up. |
…erySuite` into a query file test.
## What changes were proposed in this pull request?
Currently we have several test cases for group analytics(ROLLUP/CUBE/GROUPING SETS) in `SQLQuerySuite`, should better move them into a query file test.
The following test cases are moved to `group-analytics.sql`:
```
test("rollup")
test("grouping sets when aggregate functions containing groupBy columns")
test("cube")
test("grouping sets")
test("grouping and grouping_id")
test("grouping and grouping_id in having")
test("grouping and grouping_id in sort")
```
This is followup work of #15582
## How was this patch tested?
Modified query file `group-analytics.sql`, which will be tested by `SQLQueryTestSuite`.
Author: jiangxingbo <jiangxb1987@gmail.com>
Closes #15624 from jiangxb1987/group-analytics-test.
…ge `sql` ## What changes were proposed in this pull request? The testsuite `HiveDataFrameAnalyticsSuite` has nothing to do with HIVE, we should move it to package `sql`. The original test cases in that suite are splited into two existing testsuites: `DataFrameAggregateSuite` tests for the functions and ~~`SQLQuerySuite`~~`SQLQueryTestSuite` tests for the SQL statements. ## How was this patch tested? ~~Modified `SQLQuerySuite` in package `sql`.~~ Add query file for `SQLQueryTestSuite`. Author: jiangxingbo <jiangxb1987@gmail.com> Closes apache#15582 from jiangxb1987/group-analytics-test.
…erySuite` into a query file test.
## What changes were proposed in this pull request?
Currently we have several test cases for group analytics(ROLLUP/CUBE/GROUPING SETS) in `SQLQuerySuite`, should better move them into a query file test.
The following test cases are moved to `group-analytics.sql`:
```
test("rollup")
test("grouping sets when aggregate functions containing groupBy columns")
test("cube")
test("grouping sets")
test("grouping and grouping_id")
test("grouping and grouping_id in having")
test("grouping and grouping_id in sort")
```
This is followup work of apache#15582
## How was this patch tested?
Modified query file `group-analytics.sql`, which will be tested by `SQLQueryTestSuite`.
Author: jiangxingbo <jiangxb1987@gmail.com>
Closes apache#15624 from jiangxb1987/group-analytics-test.
…ge `sql` ## What changes were proposed in this pull request? The testsuite `HiveDataFrameAnalyticsSuite` has nothing to do with HIVE, we should move it to package `sql`. The original test cases in that suite are splited into two existing testsuites: `DataFrameAggregateSuite` tests for the functions and ~~`SQLQuerySuite`~~`SQLQueryTestSuite` tests for the SQL statements. ## How was this patch tested? ~~Modified `SQLQuerySuite` in package `sql`.~~ Add query file for `SQLQueryTestSuite`. Author: jiangxingbo <jiangxb1987@gmail.com> Closes apache#15582 from jiangxb1987/group-analytics-test.
…erySuite` into a query file test.
## What changes were proposed in this pull request?
Currently we have several test cases for group analytics(ROLLUP/CUBE/GROUPING SETS) in `SQLQuerySuite`, should better move them into a query file test.
The following test cases are moved to `group-analytics.sql`:
```
test("rollup")
test("grouping sets when aggregate functions containing groupBy columns")
test("cube")
test("grouping sets")
test("grouping and grouping_id")
test("grouping and grouping_id in having")
test("grouping and grouping_id in sort")
```
This is followup work of apache#15582
## How was this patch tested?
Modified query file `group-analytics.sql`, which will be tested by `SQLQueryTestSuite`.
Author: jiangxingbo <jiangxb1987@gmail.com>
Closes apache#15624 from jiangxb1987/group-analytics-test.
What changes were proposed in this pull request?
The testsuite
HiveDataFrameAnalyticsSuitehas nothing to do with HIVE, we should move it to packagesql.The original test cases in that suite are splited into two existing testsuites:
DataFrameAggregateSuitetests for the functions andSQLQuerySuiteSQLQueryTestSuitetests for the SQL statements.How was this patch tested?
ModifiedSQLQuerySuitein packagesql.Add query file for
SQLQueryTestSuite.