[enhancement](regression-test) add some p0 cases (#12243)

This commit is contained in:
Yongqiang YANG
2022-09-18 17:36:08 +08:00
committed by GitHub
parent c30453e9ab
commit e9f105aa1e
47 changed files with 627 additions and 0 deletions

View File

@ -0,0 +1,16 @@
12|12.25|String1|1999-01-08|1999-01-08 02:05:06|TRUE|123.22|12345678901234567890.0123456789
25|55.52|test|1952-01-05|1989-01-08 04:05:06|FALSE|321.21|-12345678901234567890.0123456789
964|0.245|Again|1936-02-08|2005-01-09 04:05:06|FALSE|333.82|98765432109876543210.9876543210
100|12.25|testing|1949-07-08|2002-01-07 01:05:06|TRUE|-393.22|-98765432109876543210.9876543210
100|99.8777|AGAIN|1987-04-09|2010-01-02 04:03:06|TRUE|000.00|00000000000000000000.0000000000
5252|12.25|sample|1987-04-09|2010-01-02 04:03:06|TRUE|123.00|00000000000000000001.0000000000
100|9.8777|STRING1|1923-04-08|2010-01-02 05:09:06|TRUE|010.01|00000000000000000002.0000000000
8996|98.8777|again|1987-04-09|2010-01-02 04:03:06|FALSE|-000.01|99999999999999999999.9999999999
100|12.8788|string1|1922-04-02|2010-01-02 02:05:06|TRUE|999.99|-99999999999999999999.9999999999
5748|67.87|sample|1987-04-06|2010-01-02 04:03:06|TRUE|-999.99|00000000000000000000.0000000001
5748|67.87|Sample|1987-04-06|2010-01-02 04:03:06|TRUE|181.18|-00000000000000000000.0000000001
5748|67.87|sample|1987-04-06|2010-01-02 04:03:06|TRUE|181.18|12345678901234567890.0123456789
5748|67.87|sample|1987-04-06|2010-01-02 04:03:06|TRUE|181.18|12345678901234567890.0123456789
5000|67.87|testing|\N|2010-01-02 04:03:06|\N|\N|\N
6000|\N|\N|1987-04-06|\N|TRUE|\N|\N
\N|98.52|\N|\N|\N|TRUE|181.18|\N
1 12 12.25 String1 1999-01-08 1999-01-08 02:05:06 TRUE 123.22 12345678901234567890.0123456789
2 25 55.52 test 1952-01-05 1989-01-08 04:05:06 FALSE 321.21 -12345678901234567890.0123456789
3 964 0.245 Again 1936-02-08 2005-01-09 04:05:06 FALSE 333.82 98765432109876543210.9876543210
4 100 12.25 testing 1949-07-08 2002-01-07 01:05:06 TRUE -393.22 -98765432109876543210.9876543210
5 100 99.8777 AGAIN 1987-04-09 2010-01-02 04:03:06 TRUE 000.00 00000000000000000000.0000000000
6 5252 12.25 sample 1987-04-09 2010-01-02 04:03:06 TRUE 123.00 00000000000000000001.0000000000
7 100 9.8777 STRING1 1923-04-08 2010-01-02 05:09:06 TRUE 010.01 00000000000000000002.0000000000
8 8996 98.8777 again 1987-04-09 2010-01-02 04:03:06 FALSE -000.01 99999999999999999999.9999999999
9 100 12.8788 string1 1922-04-02 2010-01-02 02:05:06 TRUE 999.99 -99999999999999999999.9999999999
10 5748 67.87 sample 1987-04-06 2010-01-02 04:03:06 TRUE -999.99 00000000000000000000.0000000001
11 5748 67.87 Sample 1987-04-06 2010-01-02 04:03:06 TRUE 181.18 -00000000000000000000.0000000001
12 5748 67.87 sample 1987-04-06 2010-01-02 04:03:06 TRUE 181.18 12345678901234567890.0123456789
13 5748 67.87 sample 1987-04-06 2010-01-02 04:03:06 TRUE 181.18 12345678901234567890.0123456789
14 5000 67.87 testing \N 2010-01-02 04:03:06 \N \N \N
15 6000 \N \N 1987-04-06 \N TRUE \N \N
16 \N 98.52 \N \N \N TRUE 181.18 \N

View File

@ -0,0 +1,204 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !insert --
12 12.25 String1 1999-01-08 1999-01-08T02:05:06 true 123.22 123456789012345678.900123456
100 12.25 testing 1949-07-08 2002-01-07T01:05:06 true -393.22 -987654321098765432.109876543
100 9.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 10.01 2
100 12.8788 string1 1922-04-02 2010-01-02T02:05:06 true 999.99 -999999999999999999.999999999
964 0.245 Again 1936-02-08 2005-01-09T04:05:06 false 333.82 987654321098765432.109876543
5252 12.25 sample 1987-04-09 2010-01-02T04:03:06 true 123 1
1 98.8777 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 \N abc 2014-01-01 \N false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 12.25 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 0.245 abc 2014-01-01 2005-01-09T04:05:06 false 123.22 123456789012345678.012345678
1 12.25 abc 2014-01-01 2002-01-07T01:05:06 false 123.22 123456789012345678.012345678
1 99.8777 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 9.8777 abc 2014-01-01 2010-01-02T05:09:06 false 123.22 123456789012345678.012345678
1 12.8788 abc 2014-01-01 2010-01-02T02:05:06 false 123.22 123456789012345678.012345678
1 55.52 abc 2014-01-01 1989-01-08T04:05:06 false 123.22 123456789012345678.012345678
1 12.25 abc 2014-01-01 1999-01-08T02:05:06 false 123.22 123456789012345678.012345678
1 98.52 abc 2014-01-01 \N false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.1 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
\N \N \N \N \N \N \N \N
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
4 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
4 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
\N 113.52 \N \N \N true 90.59 \N
60 27.25 String1 1999-01-08 1999-01-08T02:05:06 true 61.61 0
125 70.52000000000001 test 1952-01-05 1989-01-08T04:05:06 false 160.61 0
500 27.25 testing 1949-07-08 2002-01-07T01:05:06 true -196.61 0
500 114.8777 AGAIN 1987-04-09 2010-01-02T04:03:06 true 0 0
500 24.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 5.01 2
500 27.8788 string1 1922-04-02 2010-01-02T02:05:06 true 500 0
4820 15.245 Again 1936-02-08 2005-01-09T04:05:06 false 166.91 0
25000 82.87 testing \N 2010-01-02T04:03:06 \N \N \N
26260 27.25 sample 1987-04-09 2010-01-02T04:03:06 true 61.5 1
28740 82.87 sample 1987-04-06 2010-01-02T04:03:06 true -500 0
28740 82.87 Sample 1987-04-06 2010-01-02T04:03:06 true 90.59 0
28740 82.87 sample 1987-04-06 2010-01-02T04:03:06 true 90.59 0
28740 82.87 sample 1987-04-06 2010-01-02T04:03:06 true 90.59 0
30000 \N \N 1987-04-06 \N true \N \N
44980 113.8777 again 1987-04-09 2010-01-02T04:03:06 false -0.01 0
\N 98.52 \N \N \N true 181.18 \N
12 12.25 String1 1999-01-08 1999-01-08T02:05:06 true 123.22 123456789012345678.900123456
25 55.52 test 1952-01-05 1989-01-08T04:05:06 false 321.21 -123456789012345678.900123456
100 12.25 testing 1949-07-08 2002-01-07T01:05:06 true -393.22 -987654321098765432.109876543
100 99.8777 AGAIN 1987-04-09 2010-01-02T04:03:06 true 0 0
100 9.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 10.01 2
100 12.8788 string1 1922-04-02 2010-01-02T02:05:06 true 999.99 -999999999999999999.999999999
964 0.245 Again 1936-02-08 2005-01-09T04:05:06 false 333.82 987654321098765432.109876543
5000 67.87 testing \N 2010-01-02T04:03:06 \N \N \N
5252 12.25 sample 1987-04-09 2010-01-02T04:03:06 true 123 1
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true -999.99 0
5748 67.87 Sample 1987-04-06 2010-01-02T04:03:06 true 181.18 0
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
6000 \N \N 1987-04-06 \N true \N \N
8996 98.8777 again 1987-04-09 2010-01-02T04:03:06 false -0.01 999999999999999999.999999999
\N 98.52 \N \N \N true 181.18 \N
\N 113.52 \N \N \N true 90.59 \N
\N \N \N \N \N \N \N \N
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
1 2.1 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 2.2 abc 2014-01-01 2015-01-01T03:15:16 false 123.22 123456789012345678.012345678
1 98.52 abc 2014-01-01 \N false 123.22 123456789012345678.012345678
1 12.25 abc 2014-01-01 1999-01-08T02:05:06 false 123.22 123456789012345678.012345678
1 55.52 abc 2014-01-01 1989-01-08T04:05:06 false 123.22 123456789012345678.012345678
1 12.8788 abc 2014-01-01 2010-01-02T02:05:06 false 123.22 123456789012345678.012345678
1 9.8777 abc 2014-01-01 2010-01-02T05:09:06 false 123.22 123456789012345678.012345678
1 99.8777 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 12.25 abc 2014-01-01 2002-01-07T01:05:06 false 123.22 123456789012345678.012345678
1 0.245 abc 2014-01-01 2005-01-09T04:05:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 12.25 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 67.87 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
1 \N abc 2014-01-01 \N false 123.22 123456789012345678.012345678
1 98.8777 abc 2014-01-01 2010-01-02T04:03:06 false 123.22 123456789012345678.012345678
4 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
4 1.1 a 2016-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
12 12.25 String1 1999-01-08 1999-01-08T02:05:06 true 123.22 123456789012345678.900123456
12 12.25 String1 1999-01-08 1999-01-08T02:05:06 true 123.22 123456789012345678.900123456
25 55.52 test 1952-01-05 1989-01-08T04:05:06 false 321.21 -123456789012345678.900123456
60 27.25 String1 1999-01-08 1999-01-08T02:05:06 true 61.61 0
100 12.8788 string1 1922-04-02 2010-01-02T02:05:06 true 999.99 -999999999999999999.999999999
100 9.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 10.01 2
100 99.8777 AGAIN 1987-04-09 2010-01-02T04:03:06 true 0 0
100 12.25 testing 1949-07-08 2002-01-07T01:05:06 true -393.22 -987654321098765432.109876543
100 12.8788 string1 1922-04-02 2010-01-02T02:05:06 true 999.99 -999999999999999999.999999999
100 9.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 10.01 2
100 12.25 testing 1949-07-08 2002-01-07T01:05:06 true -393.22 -987654321098765432.109876543
125 70.52000000000001 test 1952-01-05 1989-01-08T04:05:06 false 160.61 0
500 27.8788 string1 1922-04-02 2010-01-02T02:05:06 true 500 0
500 24.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 5.01 2
500 114.8777 AGAIN 1987-04-09 2010-01-02T04:03:06 true 0 0
500 27.25 testing 1949-07-08 2002-01-07T01:05:06 true -196.61 0
964 0.245 Again 1936-02-08 2005-01-09T04:05:06 false 333.82 987654321098765432.109876543
964 0.245 Again 1936-02-08 2005-01-09T04:05:06 false 333.82 987654321098765432.109876543
4820 15.245 Again 1936-02-08 2005-01-09T04:05:06 false 166.91 0
5000 67.87 testing \N 2010-01-02T04:03:06 \N \N \N
5252 12.25 sample 1987-04-09 2010-01-02T04:03:06 true 123 1
5252 12.25 sample 1987-04-09 2010-01-02T04:03:06 true 123 1
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
5748 67.87 Sample 1987-04-06 2010-01-02T04:03:06 true 181.18 0
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true -999.99 0
6000 \N \N 1987-04-06 \N true \N \N
8996 98.8777 again 1987-04-09 2010-01-02T04:03:06 false -0.01 999999999999999999.999999999
25000 82.87 testing \N 2010-01-02T04:03:06 \N \N \N
26260 27.25 sample 1987-04-09 2010-01-02T04:03:06 true 61.5 1
28740 82.87 sample 1987-04-06 2010-01-02T04:03:06 true 90.59 0
28740 82.87 sample 1987-04-06 2010-01-02T04:03:06 true 90.59 0
28740 82.87 Sample 1987-04-06 2010-01-02T04:03:06 true 90.59 0
28740 82.87 sample 1987-04-06 2010-01-02T04:03:06 true -500 0
30000 \N \N 1987-04-06 \N true \N \N
44980 113.8777 again 1987-04-09 2010-01-02T04:03:06 false -0.01 0
\N 98.52 \N \N \N true 181.18 \N
\N 98.52 \N \N \N true 181.18 \N
12 12.25 String1 1999-01-08 1999-01-08T02:05:06 true 123.22 123456789012345678.900123456
12 12.25 String1 1999-01-08 1999-01-08T02:05:06 true 123.22 123456789012345678.900123456
25 55.52 test 1952-01-05 1989-01-08T04:05:06 false 321.21 -123456789012345678.900123456
25 55.52 test 1952-01-05 1989-01-08T04:05:06 false 321.21 -123456789012345678.900123456
100 12.25 testing 1949-07-08 2002-01-07T01:05:06 true -393.22 -987654321098765432.109876543
100 99.8777 AGAIN 1987-04-09 2010-01-02T04:03:06 true 0 0
100 9.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 10.01 2
100 12.8788 string1 1922-04-02 2010-01-02T02:05:06 true 999.99 -999999999999999999.999999999
100 12.25 testing 1949-07-08 2002-01-07T01:05:06 true -393.22 -987654321098765432.109876543
100 99.8777 AGAIN 1987-04-09 2010-01-02T04:03:06 true 0 0
100 9.8777 STRING1 1923-04-08 2010-01-02T05:09:06 true 10.01 2
100 12.8788 string1 1922-04-02 2010-01-02T02:05:06 true 999.99 -999999999999999999.999999999
964 0.245 Again 1936-02-08 2005-01-09T04:05:06 false 333.82 987654321098765432.109876543
964 0.245 Again 1936-02-08 2005-01-09T04:05:06 false 333.82 987654321098765432.109876543
5000 67.87 testing \N 2010-01-02T04:03:06 \N \N \N
5000 67.87 testing \N 2010-01-02T04:03:06 \N \N \N
5252 12.25 sample 1987-04-09 2010-01-02T04:03:06 true 123 1
5252 12.25 sample 1987-04-09 2010-01-02T04:03:06 true 123 1
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true -999.99 0
5748 67.87 Sample 1987-04-06 2010-01-02T04:03:06 true 181.18 0
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true -999.99 0
5748 67.87 Sample 1987-04-06 2010-01-02T04:03:06 true 181.18 0
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
5748 67.87 sample 1987-04-06 2010-01-02T04:03:06 true 181.18 123456789012345678.900123456
6000 \N \N 1987-04-06 \N true \N \N
6000 \N \N 1987-04-06 \N true \N \N
8996 98.8777 again 1987-04-09 2010-01-02T04:03:06 false -0.01 999999999999999999.999999999
8996 98.8777 again 1987-04-09 2010-01-02T04:03:06 false -0.01 999999999999999999.999999999
\N 98.52 \N \N \N true 181.18 \N
12 12.25 String1 1999-01-08 1999-01-08T02:05:06 true 123.22 123456789012345678.900123456
1 2.34567 a 2014-01-01 2015-01-01T03:15:16 true 123.22 123456789012345678.012345678
1 2.1 abc 2014-01-01 2015-01-01T03:15:16 false -123.22 -123456789012345678.012345678
50 9.1 abc 2014-01-01 2015-01-01T03:15:16 true 123.22 123456789012345678.012345678

View File

@ -0,0 +1,6 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !predicateNotProjected --
0
1
2

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !useRestrictiveLimitFromSubq --
2

View File

@ -0,0 +1,5 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withGroupBy --
5 4
5 3

View File

@ -0,0 +1,5 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withGroupByAndOrderByInSubq --
5 0
5 1

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withGroupByInSubq --
20

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withJoinInSubq --
5

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withLimitZero --
0

View File

@ -0,0 +1,8 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withSimpleLimit --
24
23
22
21
20

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withSubq --
10

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !projectConstants --
1 1.1 510 a dummy values true false

View File

@ -0,0 +1,4 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !projectFunctions --
10 2.0 false true

View File

@ -0,0 +1,7 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !withUnionAll --
1
2
20
-5

View File

@ -0,0 +1,6 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !except_1_order --
CHINA
PERU
VIETNAM

View File

@ -0,0 +1,6 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !except_2_order --
CHINA
PERU
VIETNAM

View File

@ -0,0 +1,8 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !except_3_order --
\N
1
10
3
6

View File

@ -0,0 +1,9 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !intersect_1_order --
CHINA
INDIA
INDONESIA
JAPAN
PERU
VIETNAM

View File

@ -0,0 +1,10 @@
-- This file is automatically generated. You should know what you did if you want to edit this
-- !intersect_2_order --
\N
2
4
5
7
8
9

View File

@ -0,0 +1,15 @@
CREATE TABLE `datatype` (
c_bigint bigint,
c_double double,
c_string string,
c_date date,
c_timestamp datetime,
c_boolean boolean,
c_short_decimal decimal(5,2),
c_long_decimal decimal(27,9)
)
DUPLICATE KEY(c_bigint)
DISTRIBUTED BY HASH(c_bigint) BUCKETS 1
PROPERTIES (
"replication_num" = "1"
)

View File

@ -0,0 +1,15 @@
CREATE TABLE `mutable_datatype` (
c_bigint bigint,
c_double double,
c_string string,
c_date date,
c_timestamp datetime,
c_boolean boolean,
c_short_decimal decimal(5,2),
c_long_decimal decimal(27,9)
)
DUPLICATE KEY(c_bigint)
DISTRIBUTED BY HASH(c_bigint) BUCKETS 1
PROPERTIES (
"replication_num" = "1"
)

View File

@ -0,0 +1,85 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
// The cases is copied from https://github.com/trinodb/trino/tree/master
// /testing/trino-product-tests/src/main/resources/sql-tests/testcases
// and modified by Doris.
suite("insert") {
def tables=["datatype", "mutable_datatype"]
for (String table in tables) {
sql """ DROP TABLE IF EXISTS $table """
}
for (String table in tables) {
sql new File("""${context.file.parent}/ddl/${table}.sql""").text
}
streamLoad {
// you can skip declare db, because a default db already specify in ${DORIS_HOME}/conf/regression-conf.groovy
// db 'regression_test'
table 'datatype'
// default label is UUID:
// set 'label' UUID.randomUUID().toString()
// default column_separator is specify in doris fe config, usually is '\t'.
// this line change to ','
set 'column_separator', '|'
// relate to ${DORIS_HOME}/regression-test/data/demo/streamload_input.csv.
// also, you can stream load a http stream, e.g. http://xxx/some.csv
file 'datetype.csv'
time 10000 // limit inflight 10s
// stream load action will check result, include Success status, and NumberTotalRows == NumberLoadedRows
// if declared a check callback, the default check condition will ignore.
// So you must check all condition
check { result, exception, startTime, endTime ->
if (exception != null) {
throw exception
}
log.info("Stream load result: ${result}".toString())
def json = parseJson(result)
assertEquals("success", json.Status.toLowerCase())
assertEquals(json.NumberTotalRows, json.NumberLoadedRows)
assertTrue(json.NumberLoadedRows > 0 && json.LoadBytes > 0)
}
}
sql """ insert into mutable_datatype select c_bigint, c_double, c_string, c_date, c_timestamp, c_boolean, c_short_decimal, c_long_decimal from datatype where c_double < 20 """
sql """ insert into mutable_datatype select 1, c_double, 'abc', cast('2014-01-01' as date), c_timestamp, FALSE, '123.22', '123456789012345678.012345678' from datatype """
sql """ insert into mutable_datatype select 1, cast(2.2 as double), 'abc', cast('2014-01-01' as date), cast('2015-01-01 03:15:16' as datetime), false, '123.22', '123456789012345678.012345678' from datatype """
sql """ insert into mutable_datatype select 1, cast(2.1 as double), 'abc', cast('2014-01-01' as date), cast('2015-01-01 03:15:16' as datetime), FALSE, '123.22', '123456789012345678.012345678' """
sql """ insert into mutable_datatype values (null, null, null, null, null, null, null, null) """
sql """ insert into mutable_datatype select count(*), cast(1.1 as double), 'a', cast('2016-01-01' as date), cast('2015-01-01 03:15:16' as datetime), FALSE, '-123.22', '-123456789012345678.012345678' from datatype group by c_bigint """
sql """ insert into mutable_datatype select 5 * c_bigint, c_double + 15, c_string, c_date, c_timestamp, c_boolean, cast((c_short_decimal / '2.00') as decimal(5,2)), cast((c_long_decimal % '10') as decimal(27,9)) from datatype """
sql """ insert into mutable_datatype select * from datatype """
sql """ insert into mutable_datatype select * from mutable_datatype """
sql """ insert into mutable_datatype select * from datatype union all select * from datatype """
sql """ insert into mutable_datatype select * from datatype order by 1 limit 2 """
sql """ insert into mutable_datatype select * from datatype where c_bigint < 0 """
sql """ insert into mutable_datatype values(1,cast(2.34567 as double),'a',cast('2014-01-01' as date), cast ('2015-01-01 03:15:16' as datetime), TRUE, '123.22', '123456789012345678.012345678') """
sql """ insert into mutable_datatype values(1, cast(2.1 as double), 'abc', cast('2014-01-01' as date), cast('2015-01-01 03:15:16' as datetime), FALSE, '-123.22', '-123456789012345678.012345678') """
sql """ insert into mutable_datatype values(5 * 10, cast(4.1 + 5 as double), 'abc', cast('2014-01-01' as date), cast('2015-01-01 03:15:16' as datetime), TRUE, '123.22', '123456789012345678.012345678') """
qt_insert """ select * from mutable_datatype """
}

View File

@ -79,6 +79,7 @@ suite("aggregate") {
}
}
sql " sync "
qt_aggregate """ select max(upper(c_string)), min(upper(c_string)) from ${tableName} """
qt_aggregate """ select avg(c_bigint), avg(c_double) from ${tableName} """
qt_aggregate """ select avg(distinct c_bigint), avg(distinct c_double) from ${tableName} """

View File

@ -0,0 +1,18 @@
CREATE TABLE IF NOT EXISTS tpch_tiny_lineitem (
orderkey bigint,
partkey bigint,
suppkey bigint,
linenumber integer,
quantity double,
extendedprice double,
discount double,
tax double,
returnflag varchar(1),
linestatus varchar(1),
shipdate date,
commitdate date,
receiptdate date,
shipinstruct varchar(25),
shipmode varchar(10),
comment varchar(44)
) DUPLICATE KEY(orderkey) DISTRIBUTED BY HASH(orderkey) BUCKETS 3 PROPERTIES ("replication_num" = "1")

View File

@ -0,0 +1,12 @@
CREATE TABLE IF NOT EXISTS tpch_tiny_nation (
nationkey BIGINT NOT NULL,
name VARCHAR(25) NOT NULL,
regionkey BIGINT NOT NULL,
comment VARCHAR(152)
)
DUPLICATE KEY(nationkey)
DISTRIBUTED BY HASH(nationkey) BUCKETS 3
PROPERTIES (
"replication_num" = "1"
)

View File

@ -0,0 +1,11 @@
CREATE TABLE IF NOT EXISTS tpch_tiny_part (
p_partkey INTEGER NOT NULL,
p_name VARCHAR(55) NOT NULL,
p_mfgr CHAR(25) NOT NULL,
p_brand CHAR(10) NOT NULL,
p_type VARCHAR(25) NOT NULL,
p_size INTEGER NOT NULL,
p_container CHAR(10) NOT NULL,
p_retailprice DECIMAL(15, 2) NOT NULL,
p_comment VARCHAR(23) NOT NULL
) DUPLICATE KEY(p_partkey) DISTRIBUTED BY HASH(p_partkey) BUCKETS 3 PROPERTIES ("replication_num" = "1")

View File

@ -0,0 +1,7 @@
CREATE TABLE IF NOT EXISTS tpch_tiny_partsupp (
partkey bigint,
suppkey bigint,
availqty integer,
supplycost double,
comment varchar(199)
) DUPLICATE KEY(partkey, suppkey) DISTRIBUTED BY HASH(partkey) BUCKETS 3 PROPERTIES ("replication_num" = "1")

View File

@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS tpch_tiny_region (
r_regionkey INTEGER NOT NULL,
r_name CHAR(25) NOT NULL,
r_comment VARCHAR(152)
)
DUPLICATE KEY(r_regionkey)
DISTRIBUTED BY HASH(r_regionkey) BUCKETS 3
PROPERTIES (
"replication_num" = "1"
)

View File

@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS tpch_tiny_supplier (
s_suppkey INTEGER NOT NULL,
s_name CHAR(25) NOT NULL,
s_address VARCHAR(40) NOT NULL,
s_nationkey INTEGER NOT NULL,
s_phone CHAR(15) NOT NULL,
s_acctbal DECIMAL(15, 2) NOT NULL,
s_comment VARCHAR(101) NOT NULL
) DUPLICATE KEY(s_suppkey) DISTRIBUTED BY HASH(s_suppkey) BUCKETS 3 PROPERTIES ("replication_num" = "1")

View File

@ -0,0 +1,10 @@
CREATE TABLE IF NOT EXISTS tpch_tiny_workers (
id_employee INT,
first_name VARCHAR(32),
last_name VARCHAR(32),
date_of_employment DATE,
department TINYINT(1),
id_department INT,
name VARCHAR(32),
salary INT
) DUPLICATE KEY(id_employee) DISTRIBUTED BY HASH(first_name) BUCKETS 3 PROPERTIES ("replication_num" = "1")

View File

@ -0,0 +1,63 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
// The cases is copied from https://github.com/trinodb/trino/tree/master
// /testing/trino-product-tests/src/main/resources/sql-tests/testcases/window_functions
// and modified by Doris.
suite("load") {
def tables = ['lineitem', 'region', 'nation', 'part', 'supplier', 'partsupp', 'workers']
for (String table in tables) {
sql """ DROP TABLE IF EXISTS tpch_tiny_${table} """
}
for (String table in tables) {
sql new File("""${context.file.parent}/ddl/${table}.sql""").text
}
for (String tableName in tables) {
streamLoad {
// you can skip declare db, because a default db already specify in ${DORIS_HOME}/conf/regression-conf.groovy
// db 'regression_test'
table "tpch_tiny_${tableName}"
// default column_separator is specify in doris fe config, usually is '\t'.
// this line change to ','
set 'column_separator', '|'
set 'compress_type', 'GZ'
// relate to ${DORIS_HOME}/regression-test/data/demo/streamload_input.csv.
// also, you can stream load a http stream, e.g. http://xxx/some.csv
file """${getS3Url() + '/regression/tpch/sf0.01/'+ tableName}.csv.gz"""
time 10000 // limit inflight 10s
// if declared a check callback, the default check condition will ignore.
// So you must check all condition
check { result, exception, startTime, endTime ->
if (exception != null) {
throw exception
}
log.info("Stream load result: ${result}".toString())
def json = parseJson(result)
assertEquals('success', json.Status.toLowerCase())
assertEquals(json.NumberTotalRows, json.NumberLoadedRows)
assertTrue(json.NumberLoadedRows > 0 && json.LoadBytes > 0)
}
}
}
}

View File

@ -0,0 +1,3 @@
-- database: presto; groups: limit; tables: nation
SELECT nationkey FROM tpch_tiny_nation WHERE name < 'INDIA'
ORDER BY nationkey LIMIT 3

View File

@ -0,0 +1,2 @@
-- database: presto; groups: limit; tables: nation
SELECT COUNT(*) FROM (SELECT * FROM tpch_tiny_nation LIMIT 2) AS foo LIMIT 5

View File

@ -0,0 +1,4 @@
-- database: presto; groups: limit; tables: nation
SELECT COUNT(*), regionkey FROM tpch_tiny_nation GROUP BY regionkey
ORDER BY regionkey DESC
LIMIT 2

View File

@ -0,0 +1,4 @@
-- database: presto; groups: limit; tables: nation
SELECT foo.c, foo.regionkey FROM
(SELECT regionkey, COUNT(*) AS c FROM tpch_tiny_nation
GROUP BY regionkey ORDER BY regionkey LIMIT 2) foo

View File

@ -0,0 +1,4 @@
-- database: presto; groups: limit; tables: partsupp
SELECT COUNT(*) FROM (
SELECT suppkey, COUNT(*) FROM tpch_tiny_partsupp
GROUP BY suppkey LIMIT 20) t1

View File

@ -0,0 +1 @@
SELECT COUNT(*) FROM (SELECT n1.regionkey, n1.nationkey FROM tpch_tiny_nation n1 JOIN tpch_tiny_nation n2 ON n1.regionkey = n2.regionkey LIMIT 5) foo

View File

@ -0,0 +1,3 @@
-- database: presto; groups: limit; tables: nation
SELECT COUNT(*) FROM
(SELECT * FROM tpch_tiny_nation LIMIT 0) foo

View File

@ -0,0 +1,2 @@
-- database: presto; groups: limit; tables: nation
SELECT nationkey from tpch_tiny_nation ORDER BY nationkey DESC LIMIT 5

View File

@ -0,0 +1,2 @@
-- database: presto; groups: limit; tables: nation
SELECT COUNT(*) FROM (SELECT * FROM tpch_tiny_nation LIMIT 10) t1

View File

@ -0,0 +1,4 @@
/*
-- database: presto; groups: no_from
SELECT COUNT(10), MAX(50), MIN(90.0)
*/

View File

@ -0,0 +1,2 @@
-- database: presto; groups: no_from
SELECT 1, 1.1, 100*5.1, 'a', 'dummy values', TRUE, FALSE

View File

@ -0,0 +1,2 @@
-- database: presto; groups: no_from
SELECT abs(-10.0E0), log2(4), TRUE AND FALSE, TRUE OR FALSE

View File

@ -0,0 +1,4 @@
/*
-- database: presto; groups: no_from
SELECT MIN(10), 3 as col1 GROUP BY 2 HAVING 6 > 5 ORDER BY 1
*/

View File

@ -0,0 +1,8 @@
-- database: presto; groups: no_from
SELECT 1
UNION ALL
SELECT 2
UNION ALL
SELECT 4*5
UNION ALL
SELECT -5

View File

@ -0,0 +1,4 @@
/*
-- database: presto; groups: no_from
SELECT 1 WHERE TRUE AND 2=2
*/

View File

@ -0,0 +1,4 @@
/*
-- database: presto; groups: no_from
SELECT COUNT(*), 1 WHERE FALSE
*/