Skip to content

Commit

Permalink
[SPARK-21114][TEST][2.1] Fix test failure in Spark 2.1/2.0 due to nam…
Browse files Browse the repository at this point in the history
…e mismatch

## What changes were proposed in this pull request?
Name mismatch between 2.1/2.0 and 2.2. Thus, the test cases failed after we backport a fix to 2.1/2.0. This PR is to fix the issue.

https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test/job/spark-branch-2.1-test-maven-hadoop-2.7/lastCompletedBuild/testReport/org.apache.spark.sql/SQLQueryTestSuite/arithmetic_sql/

https://amplab.cs.berkeley.edu/jenkins/view/Spark%20QA%20Test/job/spark-branch-2.0-test-maven-hadoop-2.2/lastCompletedBuild/testReport/org.apache.spark.sql/SQLQueryTestSuite/arithmetic_sql/

## How was this patch tested?
N/A

Author: gatorsmile <gatorsmile@gmail.com>

Closes #18319 from gatorsmile/fixDecimal.
  • Loading branch information
gatorsmile authored and cloud-fan committed Jun 16, 2017
1 parent 915a201 commit 0ebb3b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Automatically generated by SQLQueryTestSuite
-- Number of queries: 13
-- Number of queries: 7


-- !query 0
Expand Down Expand Up @@ -65,4 +65,3 @@ struct<a:int,tag:string>
1 a
1 b
1 b

0 comments on commit 0ebb3b8

Please sign in to comment.