-- Automatically generated by SQLQueryTestSuite
-- Number of queries: 9
-- !query 0
select * from dummy(3)
-- !query 0 schema
struct<>
-- !query 0 output
org.apache.spark.sql.AnalysisException
could not resolve `dummy` to a table-valued function; line 1 pos 14
-- !query 1
select * from range(6 + cos(3))
-- !query 1 schema
struct<id:bigint>
-- !query 1 output
0
1
2
3
4
-- !query 2
select * from range(5, 10)
-- !query 2 schema
struct<id:bigint>
-- !query 2 output
5
6
7
8
9
-- !query 3
select * from range(0, 10, 2)
-- !query 3 schema
struct<id:bigint>
-- !query 3 output
0
2
4
6
8
-- !query 4
select * from range(0, 10, 1, 200)
-- !query 4 schema
struct<id:bigint>
-- !query 4 output
0
1
2
3
4
5
6
7
8
9
-- !query 5
select * from range(1, 1, 1, 1, 1)
-- !query 5 schema
struct<>
-- !query 5 output
org.apache.spark.sql.AnalysisException
error: table-valued function range with alternatives:
(end: long)
(start: long, end: long)
(start: long, end: long, step: long)
(start: long, end: long, step: long, numPartitions: integer)
cannot be applied to: (integer, integer, integer, integer, integer); line 1 pos 14
-- !query 6
select * from range(1, null)
-- !query 6 schema
struct<>
-- !query 6 output
java.lang.IllegalArgumentException
Invalid arguments for resolved function: 1, null
-- !query 7
select * from RaNgE(2)
-- !query 7 schema
struct<id:bigint>
-- !query 7 output
0
1
-- !query 8
EXPLAIN select * from RaNgE(2)
-- !query 8 schema
struct<plan:string>
-- !query 8 output
== Physical Plan ==
*Range (0, 2, step=1, splits=2)