1[
2{
3   "statements":"select IS_ARRAY(orders3.orderlines) as a from default:orders3 order by a",
4   "results": [
5        {
6            "a": true
7        },
8        {
9            "a": true
10        },
11        {
12            "a": true
13        },
14        {
15            "a": true
16        },
17        {
18            "a": true
19        }
20    ]
21},
22{
23   "statements":"select IS_ARRAY(orders3.id) as a from default:orders3 order by a",
24   "results": [
25        {
26            "a": false
27        },
28        {
29            "a": false
30        },
31        {
32            "a": false
33        },
34        {
35            "a": false
36        },
37        {
38            "a": false
39        }
40    ]
41},
42{
43   "statements":"select IS_ARRAY(null) ",
44   "results": [
45        {
46            "$1": null
47        }
48    ]
49},
50{
51   "statements":"select IS_ARRAY(missing) ",
52   "results": [
53        {}
54    ]
55},
56{
57   "statements":"select IS_ATOM(orders3.orderlines) as a from default:orders3 order by a ",
58   "results": [
59        {
60            "a": false
61        },
62        {
63            "a": false
64        },
65        {
66            "a": false
67        },
68        {
69            "a": false
70        },
71        {
72            "a": false
73        }
74    ]
75},
76{
77   "statements":"select IS_ATOM(orders3.id) as a from default:orders3 order by a ",
78   "results": [
79        {
80            "a": true
81        },
82        {
83            "a": true
84        },
85        {
86            "a": true
87        },
88        {
89            "a": true
90        },
91        {
92            "a": true
93        }
94    ]
95},
96{
97   "statements":"select IS_BOOLEAN(false) ",
98   "results": [
99        {
100            "$1": true
101        }
102    ]
103},
104{
105   "statements":"select IS_BOOLEAN(1) ",
106   "results": [
107        {
108            "$1": false
109        }
110    ]
111},
112{
113   "statements":"select IS_NUM(0) ",
114   "results": [
115        {
116            "$1": true
117        }
118    ]
119},
120{
121   "statements":"select IS_NUM([1,2]) ",
122   "results": [
123        {
124            "$1": false
125        }
126    ]
127},
128{
129   "statements":"select IS_OBJ(orders3) as a from default:orders3 ",
130   "results": [
131        {
132            "a": true
133        },
134        {
135            "a": true
136        },
137        {
138            "a": true
139        },
140        {
141            "a": true
142        },
143        {
144            "a": true
145        }
146    ]
147},
148{
149   "statements":"select is_string(\"\")",
150   "results": [
151        {
152            "$1": true
153        }
154    ]
155},
156{
157   "statements":"SELECT TYPE(ARRAY child FOR child IN children END) AS all_children FROM default:contacts ORDER BY all_children ",
158    "results": [
159        {
160            "all_children": "array"
161        },
162        {
163            "all_children": "array"
164        },
165        {
166            "all_children": "array"
167        },
168        {
169            "all_children": "missing"
170        },
171        {
172            "all_children": "missing"
173        },
174        {
175            "all_children": "missing"
176        }
177    ]
178},
179{
180   "statements":"select (ARRAY TYPE(c) for c in [ 1, \"yes\", true,[1,2], missing, null] END)  as ok ",
181   "results": [
182        {
183            "ok": [
184                "number",
185                "string",
186                "boolean",
187                "array",
188                "missing",
189                "null"
190            ]
191        }
192    ]
193}
194
195]
196