Skip to content

Commit

Permalink
[SPARK-21282][TEST][2.0] Fix test failure in 2.0
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

There is a test failure after backporting a fix from 2.2 to 2.0, because the automatically generated column names are different between 2.2 and 2.0
https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test/job/spark-branch-2.0-test-maven-hadoop-2.2/lastCompletedBuild/testReport/

This PR is to re-generate the result file.

### How was this patch tested?
N/A

Author: gatorsmile <gatorsmile@gmail.com>

Closes #18506 from gatorsmile/fixFailure.
  • Loading branch information
gatorsmile authored and cloud-fan committed Jul 3, 2017
1 parent 44a97f7 commit 4229e16
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,15 @@ struct<CEIL(CAST(1 AS DOUBLE)):bigint>
-- !query 34
select ceil(1234567890123456)
-- !query 34 schema
struct<CEIL(1234567890123456):bigint>
struct<CEIL(CAST(1234567890123456 AS DOUBLE)):bigint>
-- !query 34 output
1234567890123456


-- !query 35
select ceiling(1234567890123456)
-- !query 35 schema
struct<CEIL(1234567890123456):bigint>
struct<CEIL(CAST(1234567890123456 AS DOUBLE)):bigint>
-- !query 35 output
1234567890123456

Expand Down Expand Up @@ -329,7 +329,7 @@ struct<FLOOR(CAST(1 AS DOUBLE)):bigint>
-- !query 40
select floor(1234567890123456)
-- !query 40 schema
struct<FLOOR(1234567890123456):bigint>
struct<FLOOR(CAST(1234567890123456 AS DOUBLE)):bigint>
-- !query 40 output
1234567890123456

Expand Down
5 changes: 4 additions & 1 deletion sql/core/src/test/resources/sql-tests/results/array.sql.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Automatically generated by SQLQueryTestSuite
-- Number of queries: 10
-- Number of queries: 12


-- !query 0
Expand Down Expand Up @@ -124,6 +124,7 @@ struct<sort_array(boolean_array, true):array<boolean>,sort_array(tinyint_array,
-- !query 8 output
[true] [1,2] [1,2] [1,2] [1,2] [9223372036854775808,9223372036854775809] [1.0,2.0] [1.0,2.0] [2016-03-13,2016-03-14] [2016-11-12 20:54:00.0,2016-11-15 20:54:00.0]


-- !query 9
select sort_array(array('b', 'd'), '1')
-- !query 9 schema
Expand All @@ -132,6 +133,7 @@ struct<>
org.apache.spark.sql.AnalysisException
cannot resolve 'sort_array(array('b', 'd'), '1')' due to data type mismatch: Sort order in second argument requires a boolean literal.; line 1 pos 7


-- !query 10
select sort_array(array('b', 'd'), cast(NULL as boolean))
-- !query 10 schema
Expand All @@ -140,6 +142,7 @@ struct<>
org.apache.spark.sql.AnalysisException
cannot resolve 'sort_array(array('b', 'd'), CAST(NULL AS BOOLEAN))' due to data type mismatch: Sort order in second argument requires a boolean literal.; line 1 pos 7


-- !query 11
select
size(boolean_array),
Expand Down

0 comments on commit 4229e16

Please sign in to comment.