Skip to content

Commit

Permalink
Testing CRUD for the table schema. (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
denysord88 authored and agirish committed Aug 23, 2019
1 parent 210a918 commit ae106e9
Show file tree
Hide file tree
Showing 98 changed files with 1,792 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framework/resources/Datasources/table_schema/bigint.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id,bigint_col,varchar_bigint_col
1,-9223372036854775808,-9223372036854775808
2,-17,-17
3,0,0
4,15,15
5,9223372036854775807,9223372036854775807
21 changes: 21 additions & 0 deletions framework/resources/Datasources/table_schema/boolean.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
id,boolean_col,varchar_boolean_col
1,true,true
2,1,1
3,t,t
4,y,y
5,yes,yes
6,on,on
7,false,false
8,0,0
9,f,f
10,n,n
11,no,no
12,off,off
13,a,true
14,-,true
15,!,true
16,`,true
17,7,true
18,@,true
19,^,true
20,*,true
8 changes: 8 additions & 0 deletions framework/resources/Datasources/table_schema/date.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
id,date_col,varchar_date_col
1,1-12-31,1-12-31
2,1-1-1,1-1-1
3,999-2-3,999-2-3
4,1969-1-1,1969-1-1
5,1970-01-01,1970-01-01
6,2019-02-19,2019-02-19
7,9999-12-31,9999-12-31
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
id,date_format_col,varchar_date_format_col
1,22+Sep 10,22+Sep 10
2,11+Oct 01,11+Oct 01
3,99+Sep 10,99+Sep 10
4,22+Nov 22,22+Nov 22
5,11+Jan 30,11+Jan 30
6,10+Dec 42,10+Dec 42
7,01+May 31,01+May 31
8,00+Aug 67,00+Aug 67
12 changes: 12 additions & 0 deletions framework/resources/Datasources/table_schema/decimal.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
id,decimal_5_5,varchar_decimal_5_5,decimal_5_3,varchar_decimal_5_3,decimal_5_0,varchar_decimal_5_0
1,-0.99999,-0.99999,-99.999,-99.999,-99999,-99999
2,-0.99999,-0.99999,-99.999,-99.999,-99999.0,-99999.0
3,-0.1,-0.1,-0.1,-0.1,-0.0,-0.0
4,0,0.0,0,0,0,0
5,-0,-0.0,-0,-0,-0,-0
6,0.1,0.1,0.1,0.1,0.0,0.0
7,+0.1,+0.1,+0.1,+0.1,+0.0,+0.0
8,0.99999,0.99999,99.999,99.999,99999,99999
9,0.99999,0.99999,99.999,99.999,99999.0,99999.0
10,+0.99999,+0.99999,+99.999,+99.999,+99999,+99999
11,+0.99999,+0.99999,+99.999,+99.999,+99999.0,+99999.0
47 changes: 47 additions & 0 deletions framework/resources/Datasources/table_schema/double.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
id,double_col,varchar_double_col
1,NaN,NaN
2,+NaN,+NaN
3,-NaN,-NaN
4, NaN, NaN
5,NaN ,NaN
6,NaN,NaN
7,NaN,NaN
8,Infinity,Infinity
9,+Infinity,+Infinity
10,-Infinity,-Infinity
11, Infinity ,Infinity
12,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792
13,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792D,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792D
14,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792F,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792F
15,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791
16,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791D,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791D
17,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791F,-179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791F
18,-1.7976931348623157e308D,-1.7976931348623157e308D
19,-1.7976931348623157e308F,-1.7976931348623157e308F
20,-1.7976931348623157e308,-1.7976931348623157e308
21,-1.7976931348623158e308D,-1.7976931348623158e308D
22,-1.7976931348623158e308F,-1.7976931348623158e308F
23,-1.7976931348623158e308,-1.7976931348623158e308
24,0,0
25,0.0,0.0
26,0.0f,0.0f
27,0.0D,0.0D
28,0.0F,0.0F
29,1.7976931348623157e308D,1.7976931348623157e308D
30,1.7976931348623157e308F,1.7976931348623157e308F
31,1.7976931348623157e308,1.7976931348623157e308
32,1.7976931348623158e308D,1.7976931348623158e308D
33,1.7976931348623158e308F,1.7976931348623158e308F
34,1.7976931348623158e308,1.7976931348623158e308
35,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792
36,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792D,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792D
37,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792F,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497792F
38,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791
39,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791D,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791D
40,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791F,179769313486231580793728971405303415079934132710037826936173778980444968292764750946649017977587207096330286416692887910946555547851940402630657488671505820681908902000708383676273854845817711531764475730270069855571366959622842914819860834936475292719074168444365510704342711559699508093042880177904174497791F
41,-1.7976931348623158e308,-1.7976931348623158e308
42,-1.7976931348623157e308,-1.7976931348623157e308
43,1.7976931348623157e308,1.7976931348623157e308
44,1.7976931348623158e308,1.7976931348623158e308
45,4.9e-324d,4.9e-324d
46,4.9e-324,4.9e-324
6 changes: 6 additions & 0 deletions framework/resources/Datasources/table_schema/double_1.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
double_col
1
2
3
4
5
6 changes: 6 additions & 0 deletions framework/resources/Datasources/table_schema/double_2.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
double_col
5
6
7.7
8
9
24 changes: 24 additions & 0 deletions framework/resources/Datasources/table_schema/float.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
id,float_col,varchar_float_col
1,0.00000000000000000000000000000000000000000000190,0.00000000000000000000000000000000000000000000190
2,0.00000000000000000000000000000000000000000000090,0.00000000000000000000000000000000000000000000090
3,0.00000000000000000000000000000000000000000000140,0.00000000000000000000000000000000000000000000140
4,0.00000000000000000000000000000000000000000000150,0.00000000000000000000000000000000000000000000150
5,0.00000000000000000000000000000000000000000000130,0.00000000000000000000000000000000000000000000130
6,0.000000000000000000000000000000000000000000000140,0.000000000000000000000000000000000000000000000140
7,0.0000000000000000000000000000000000000000000000140,0.0000000000000000000000000000000000000000000000140
8,0.00000000000000000000000000000000000000000000000140,0.00000000000000000000000000000000000000000000000140
9,0,0
10,0.0,0.0
11,0.0f,0.0f
12,0.0D,0.0D
13,0.0F,0.0F
14,-0.00000000000000000000000000000000000000000000140,-0.00000000000000000000000000000000000000000000140
15,-0.00000000000000000000000000000000000000000000150,-0.00000000000000000000000000000000000000000000150
16,-0.00000000000000000000000000000000000000000000130,-0.00000000000000000000000000000000000000000000130
17,-0.000000000000000000000000000000000000000000000140,-0.000000000000000000000000000000000000000000000140
18,-0.0000000000000000000000000000000000000000000000140,-0.0000000000000000000000000000000000000000000000140
19,-0.00000000000000000000000000000000000000000000000140,-0.00000000000000000000000000000000000000000000000140
20,-3.4028235E38,-3.4028235E38
21,3.4028235e38,3.4028235e38
22,1.40e-45f,1.40e-45f
23,1.40e-45,1.40e-45
6 changes: 6 additions & 0 deletions framework/resources/Datasources/table_schema/integer.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
id,integer_col,varchar_integer_col
1,-2147483648,-2147483648
2,-15,-15
3,0,0
4,15,15
5,2147483647,2147483647
64 changes: 64 additions & 0 deletions framework/resources/Datasources/table_schema/interval.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
id,interval_col,varchar_interval_col
1,P0Y,P0Y
2,P0Y0M,P0Y0M
3,P0Y0M0D,P0Y0M0D
4,P0Y0M0DT0H,P0Y0M0DT0H
5,P0Y0M0DT0H0M,P0Y0M0DT0H0M
6,P0Y0M0DT0H0M0S,P0Y0M0DT0H0M0S
7,P0M,P0M
8,P0M0D,P0M0D
9,P0M0DT0H,P0M0DT0H
10,P0M0DT0H0M,P0M0DT0H0M
11,P0M0DT0H0M0S,P0M0DT0H0M0S
12,P0D,P0D
13,P0DT0H,P0DT0H
14,P0DT0H0M,P0DT0H0M
15,P0DT0H0M0S,P0DT0H0M0S
16,PT0H,PT0H
17,PT0H0M,PT0H0M
18,PT0H0M0S,PT0H0M0S
19,PT0M,PT0M
20,PT0M0S,PT0M0S
21,PT0S,PT0S
22,P1Y,P1Y
23,P1Y1M,P1Y1M
24,P1Y1M1D,P1Y1M1D
25,P1Y1M1DT1H,P1Y1M1DT1H
26,P1Y1M1DT1H1M,P1Y1M1DT1H1M
27,P1Y1M1DT1H1M1S,P1Y1M1DT1H1M1S
28,P1M,P1M
29,P1M1D,P1M1D
30,P1M1DT1H,P1M1DT1H
31,P1M1DT1H1M,P1M1DT1H1M
32,P1M1DT1H1M1S,P1M1DT1H1M1S
33,P1D,P1D
34,P1DT1H,P1DT1H
35,P1DT1H1M,P1DT1H1M
36,P1DT1H1M1S,P1DT1H1M1S
37,PT1H,PT1H
38,PT1H1M,PT1H1M
39,PT1H1M1S,PT1H1M1S
40,PT1M,PT1M
41,PT1M1S,PT1M1S
42,PT1S,PT1S
43,P9999Y,P9999Y
44,P9999Y12M,P9999Y12M
45,P9999Y12M28D,P9999Y12M28D
46,P9999Y12M28DT23H,P9999Y12M28DT23H
47,P9999Y12M28DT23H59M,P9999Y12M28DT23H59M
48,P9999Y12M28DT23H59M59S,P9999Y12M28DT23H59M59S
49,P12M,P12M
50,P12M28D,P12M28D
51,P12M28DT23H,P12M28DT23H
52,P12M28DT23H59M,P12M28DT23H59M
53,P12M28DT23H59M59S,P12M28DT23H59M59S
54,P28D,P28D
55,P28DT23H,P28DT23H
56,P28DT23H59M,P28DT23H59M
57,P28DT23H59M59S,P28DT23H59M59S
58,PT23H,PT23H
59,PT23H59M,PT23H59M
60,PT23H59M59S,PT23H59M59S
61,PT59M,PT59M
62,PT59M59S,PT59M59S
63,PT59S,PT59S
22 changes: 22 additions & 0 deletions framework/resources/Datasources/table_schema/interval_day.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
id,interval_col,varchar_interval_col
1,P0D,P0D
2,P1D,P1D
3,P10D,P10D
4,P200D,P200D
5,P7777D,P7777D
6,P9999D,P9999D
7,P99999D,P99999D
8,P-0D,P-0D
9,P-1D,P-1D
10,P-10D,P-10D
11,P-200D,P-200D
12,P-7777D,P-7777D
13,P-9999D,P-9999D
14,P-99999D,P-99999D
15,P+0D,P+0D
16,P+1D,P+1D
17,P+10D,P+10D
18,P+200D,P+200D
19,P+7777D,P+7777D
20,P+9999D,P+9999D
21,P+99999D,P+99999D
28 changes: 28 additions & 0 deletions framework/resources/Datasources/table_schema/interval_hour.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
id,interval_col,varchar_interval_col
1,PT0H,PT0H
2,PT1H,PT1H
3,PT12H,PT12H
4,PT23H,PT23H
5,PT24H,PT24H
6,PT200H,PT200H
7,PT7777H,PT7777H
8,PT9999H,PT9999H
9,PT99999H,PT99999H
10,PT-0H,PT-0H
11,PT-1H,PT-1H
12,PT-12H,PT-12H
13,PT-23H,PT-23H
14,PT-24H,PT-24H
15,PT-200H,PT-200H
16,PT-7777H,PT-7777H
17,PT-9999H,PT-9999H
18,PT-99999H,PT-99999H
19,PT+0H,PT+0H
20,PT+1H,PT+1H
21,PT+12H,PT+12H
22,PT+23H,PT+23H
23,PT+24H,PT+24H
24,PT+200H,PT+200H
25,PT+7777H,PT+7777H
26,PT+9999H,PT+9999H
27,PT+99999H,PT+99999H
28 changes: 28 additions & 0 deletions framework/resources/Datasources/table_schema/interval_minute.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
id,interval_col,varchar_interval_col
1,PT0M,PT0M
2,PT1M,PT1M
3,PT30M,PT30M
4,PT59M,PT59M
5,PT60M,PT60M
6,PT200M,PT200M
7,PT7777M,PT7777M
8,PT9999M,PT9999M
9,PT99999M,PT99999M
10,PT-0M,PT-0M
11,PT-1M,PT-1M
12,PT-30M,PT-30M
13,PT-59M,PT-59M
14,PT-60M,PT-60M
15,PT-200M,PT-200M
16,PT-7777M,PT-7777M
17,PT-9999M,PT-9999M
18,PT-99999M,PT-99999M
19,PT+0M,PT+0M
20,PT+1M,PT+1M
21,PT+30M,PT+30M
22,PT+59M,PT+59M
23,PT+60M,PT+60M
24,PT+200M,PT+200M
25,PT+7777M,PT+7777M
26,PT+9999M,PT+9999M
27,PT+99999M,PT+99999M
22 changes: 22 additions & 0 deletions framework/resources/Datasources/table_schema/interval_month.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
id,interval_col,varchar_interval_col
1,P0M,P0M
2,P1M,P1M
3,P10M,P10M
4,P200M,P200M
5,P7777M,P7777M
6,P9999M,P9999M
7,P99999M,P99999M
8,P-0M,P-0M
9,P-1M,P-1M
10,P-10M,P-10M
11,P-200M,P-200M
12,P-7777M,P-7777M
13,P-9999M,P-9999M
14,P-99999M,P-99999M
15,P+0M,P+0M
16,P+1M,P+1M
17,P+10M,P+10M
18,P+200M,P+200M
19,P+7777M,P+7777M
20,P+9999M,P+9999M
21,P+99999M,P+99999M
28 changes: 28 additions & 0 deletions framework/resources/Datasources/table_schema/interval_second.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
id,interval_col,varchar_interval_col
1,PT0S,PT0S
2,PT1S,PT1S
3,PT30S,PT30S
4,PT59S,PT59S
5,PT60S,PT60S
6,PT200S,PT200S
7,PT7777S,PT7777S
8,PT9999S,PT9999S
9,PT99999S,PT99999S
10,PT-0S,PT-0S
11,PT-1S,PT-1S
12,PT-30S,PT-30S
13,PT-59S,PT-59S
14,PT-60S,PT-60S
15,PT-200S,PT-200S
16,PT-7777S,PT-7777S
17,PT-9999S,PT-9999S
18,PT-99999S,PT-99999S
19,PT+0S,PT+0S
20,PT+1S,PT+1S
21,PT+30S,PT+30S
22,PT+59S,PT+59S
23,PT+60S,PT+60S
24,PT+200S,PT+200S
25,PT+7777S,PT+7777S
26,PT+9999S,PT+9999S
27,PT+99999S,PT+99999S
22 changes: 22 additions & 0 deletions framework/resources/Datasources/table_schema/interval_year.csvh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
id,interval_col,varchar_interval_col
1,P0Y,P0Y
2,P1Y,P1Y
3,P10Y,P10Y
4,P200Y,P200Y
5,P7777Y,P7777Y
6,P9999Y,P9999Y
7,P99999Y,P99999Y
8,P-0Y,P-0Y
9,P-1Y,P-1Y
10,P-10Y,P-10Y
11,P-200Y,P-200Y
12,P-7777Y,P-7777Y
13,P-9999Y,P-9999Y
14,P-99999Y,P-99999Y
15,P+0Y,P+0Y
16,P+1Y,P+1Y
17,P+10Y,P+10Y
18,P+200Y,P+200Y
19,P+7777Y,P+7777Y
20,P+9999Y,P+9999Y
21,P+99999Y,P+99999Y
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nullable_double_col
1
2

4.3
5
Loading

0 comments on commit ae106e9

Please sign in to comment.