Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-21282] [TEST] [2.0] Fix test failure in 2.0 #18506

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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