Add tests for table function numbers and zeros

This commit is contained in:
YenchangChan 2024-03-28 21:16:51 +08:00
parent f67f44596c
commit 10a63ff57d
2 changed files with 172 additions and 0 deletions

View File

@ -0,0 +1,144 @@
------numbers_0-argument-----
0
1
2
3
4
5
6
7
8
9
------system.numbers---------
0
1
2
3
4
5
6
7
8
9
------numbers_1-argument-----
0
1
2
3
4
5
6
7
8
9
------numbers_2-arguments----
10
11
12
13
14
15
16
17
18
19
------numbers_3-arguments----
10
12
14
16
18
------numbers_mt_0-argument-----
0
1
2
3
4
5
6
7
8
9
------numbers_mt_1-argument-----
0
1
2
3
4
5
6
7
8
9
------numbers_mt_2-arguments----
10
11
12
13
14
15
16
17
18
19
------numbers_mt_3-arguments----
10
12
14
16
18
------zeros_0-argument-------
0
0
0
0
0
0
0
0
0
0
------system.zeros-----------
0
0
0
0
0
0
0
0
0
0
------zeros_1-argument-------
0
0
0
0
0
0
0
0
0
0
------zeros_mt_0-argument-------
0
0
0
0
0
0
0
0
0
0
------zeros_mt_1-argument-------
0
0
0
0
0
0
0
0
0
0

View File

@ -0,0 +1,28 @@
SELECT '------numbers_0-argument-----';
SELECT number FROM numbers() LIMIT 10;
SELECT '------system.numbers---------';
SELECT number FROM system.numbers LIMIT 10;
SELECT '------numbers_1-argument-----';
SELECT number FROM numbers(10);
SELECT '------numbers_2-arguments----';
SELECT number FROM numbers(10,10);
SELECT '------numbers_3-arguments----';
SELECT number FROM numbers(10,10,2);
SELECT '------numbers_mt_0-argument-----';
SELECT number FROM numbers_mt() LIMIT 10;
SELECT '------numbers_mt_1-argument-----';
SELECT number FROM numbers_mt(10);
SELECT '------numbers_mt_2-arguments----';
SELECT number FROM numbers_mt(10,10);
SELECT '------numbers_mt_3-arguments----';
SELECT number FROM numbers_mt(10,10,2);
SELECT '------zeros_0-argument-------';
SELECT zero FROM zeros() LIMIT 10;
SELECT '------system.zeros-----------';
SELECT zero FROM system.zeros LIMIT 10;
SELECT '------zeros_1-argument-------';
SELECT zero FROM zeros(10);
SELECT '------zeros_mt_0-argument-------';
SELECT zero FROM zeros_mt() LIMIT 10;
SELECT '------zeros_mt_1-argument-------';
SELECT zero FROM zeros_mt(10);