Skip to content

[SPARK-18045][SQL][TESTS] Move HiveDataFrameAnalyticsSuite to package sql#15582

Closed
jiangxb1987 wants to merge 3 commits intoapache:masterfrom
jiangxb1987:group-analytics-test
Closed

[SPARK-18045][SQL][TESTS] Move HiveDataFrameAnalyticsSuite to package sql#15582
jiangxb1987 wants to merge 3 commits intoapache:masterfrom
jiangxb1987:group-analytics-test

Conversation

@jiangxb1987
Copy link
Copy Markdown
Contributor

@jiangxb1987 jiangxb1987 commented Oct 21, 2016

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 SQLQuerySuiteSQLQueryTestSuite tests for the SQL statements.

How was this patch tested?

Modified SQLQuerySuite in package sql.
Add query file for SQLQueryTestSuite.


test("rollup") {
checkAnswer(
testData.rollup($"a" + $"b", $"b").agg(sum($"a" - $"b")),
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rollup/Cube functions have been tested in DataFrameAggregateSuite.

@SparkQA
Copy link
Copy Markdown

SparkQA commented Oct 21, 2016

Test build #67332 has finished for PR 15582 at commit 1c5277d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Copy Markdown
Contributor

rxin commented Oct 21, 2016

Actually can we move these tests into a query file test?

In sql/core/src/test/resources/sql-tests

and check SQLQueryTestSuite

@jiangxb1987
Copy link
Copy Markdown
Contributor Author

@rxin I've moved the testcases added in this PR to an query file test, do we need to move other test cases for ROLLUP/CUBE/GROUPING-SETS too? Currently in SQLQuerySuite we have the following:

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")

@rxin
Copy link
Copy Markdown
Contributor

rxin commented Oct 23, 2016

It'd be great to move those as well!

@SparkQA
Copy link
Copy Markdown

SparkQA commented Oct 23, 2016

Test build #67404 has finished for PR 15582 at commit 3066efc.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link
Copy Markdown

SparkQA commented Oct 23, 2016

Test build #67403 has finished for PR 15582 at commit 5acbd6c.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Copy Markdown
Contributor

rxin commented Oct 23, 2016

I'm going to merge this first. Please submit a follow-up pr to move other ones.

@rxin
Copy link
Copy Markdown
Contributor

rxin commented Oct 23, 2016

(Actually I'm on an airplane and the internet is not good enough to merge patches).

@rxin
Copy link
Copy Markdown
Contributor

rxin commented Oct 23, 2016

cc @cloud-fan can you merge this?

@hvanhovell
Copy link
Copy Markdown
Contributor

Merging to master. Thanks! Ping me for the follow-up.

@asfgit asfgit closed this in b158256 Oct 23, 2016
@jiangxb1987 jiangxb1987 deleted the group-analytics-test branch October 24, 2016 04:48
asfgit pushed a commit that referenced this pull request Oct 26, 2016
…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.
robert3005 pushed a commit to palantir/spark that referenced this pull request Nov 1, 2016
…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.
robert3005 pushed a commit to palantir/spark that referenced this pull request Nov 1, 2016
…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.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…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.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants