You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cases/query/const_query.yaml
+12-30Lines changed: 12 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,12 @@
14
14
15
15
debugs: []
16
16
version: 0.5.0
17
+
# FIXME: support request procedure for const project
18
+
# requires GetTablet impl for non-table procedure
17
19
cases:
18
20
- id: 0
19
21
desc: select const number
20
-
mode: request-unsupport
22
+
mode: procedure-unsupport
21
23
db: db1
22
24
sql: |
23
25
select 1 as id, 2 as col1, 3.3 as col2;
@@ -29,7 +31,7 @@ cases:
29
31
- [1, 2, 3.3]
30
32
- id: 1
31
33
desc: select str
32
-
mode: request-unsupport
34
+
mode: procedure-unsupport
33
35
db: db1
34
36
sql: |
35
37
select 1 as id, "hello_world" as col1;
@@ -41,7 +43,7 @@ cases:
41
43
- [1, "hello_world"]
42
44
- id: 2
43
45
desc: const substr pos len
44
-
mode: request-unsupport
46
+
mode: procedure-unsupport
45
47
db: db1
46
48
sql: |
47
49
select 1 as id, substring("hello_world", 3, 6) as col1;
@@ -53,7 +55,7 @@ cases:
53
55
- [1, "llo_wo"]
54
56
- id: 3
55
57
desc: const substr pos
56
-
mode: request-unsupport
58
+
mode: procedure-unsupport
57
59
db: db1
58
60
sql: |
59
61
select 1 as id, substring("hello_world", 3) as col1;
@@ -65,7 +67,7 @@ cases:
65
67
- [1, "llo_world"]
66
68
- id: 4
67
69
desc: const concat 1
68
-
mode: request-unsupport
70
+
mode: procedure-unsupport
69
71
db: db1
70
72
sql: |
71
73
select 1 as id, concat("hello", "world", "abc") as col1;
@@ -76,13 +78,8 @@ cases:
76
78
- [1, "helloworldabc"]
77
79
- id: 5
78
80
desc: cast常量 using CAST operator
79
-
mode: request-unsupport
81
+
mode: procedure-unsupport
80
82
db: db1
81
-
inputs:
82
-
- columns: ["c1 int", "c2 string", "c5 bigint"]
83
-
indexs: ["index1:c1:c5"]
84
-
rows:
85
-
- [1, "2020-05-22 10:43:40", 1]
86
83
sql: |
87
84
select CAST (10 as int) as c1, CAST (10 as bigint) as c2, CAST (10 as float) as c3, CAST (10 as double) as c4, CAST (1590115460000 as timestamp) as c5, CAST ("2020-05-20" as date) as c6, CAST (10 as string) as c7;
select CAST (NULL as int) as c1, CAST (NULL as bigint) as c2, CAST (NULL as float) as c3, CAST (NULL as double) as c4, CAST (NULL as timestamp) as c5, CAST (NULL as date) as c6, CAST (NULL as string) as c7;
103
95
expect:
@@ -106,13 +98,8 @@ cases:
106
98
- [NULL, NULL, NULL, NULL, NULL, NULL, NULL]
107
99
- id: 7
108
100
desc: cast常量 using type() function
109
-
mode: request-unsupport
101
+
mode: procedure-unsupport
110
102
db: db1
111
-
inputs:
112
-
- columns: ["c1 int", "c2 string", "c5 bigint"]
113
-
indexs: ["index1:c1:c5"]
114
-
rows:
115
-
- [1, "2020-05-22 10:43:40", 1]
116
103
sql: |
117
104
select int(10) as c1, bigint(10) as c2, float(10) as c3, double(10) as c4, timestamp(1590115460000) as c5, date("2020-05-20") as c6, string(10) as c7;
0 commit comments