Skip to content

Commit

Permalink
generate result file
Browse files Browse the repository at this point in the history
  • Loading branch information
gatorsmile committed Jul 3, 2017
1 parent 44a97f7 commit cfc2e7e
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 cfc2e7e

Please sign in to comment.