1[
2{
3   "statements":"select IS_ARRAY(orders.orderlines) as a from orders WHERE test_id=\"typeconv_func\" 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},
19{
20   "statements":"select IS_ARRAY(orders.id) as a from orders WHERE test_id=\"typeconv_func\" order by a",
21   "results": [
22        {
23            "a": false
24        },
25        {
26            "a": false
27        },
28        {
29            "a": false
30        },
31        {
32            "a": false
33        }
34    ]
35},
36{
37   "statements":"select IS_ARRAY(null) ",
38   "results": [
39        {
40            "$1": null
41        }
42    ]
43},
44{
45   "statements":"select IS_ARRAY(missing) ",
46   "results": [
47        {}
48    ]
49},
50{
51   "statements":"select IS_ATOM(orders.orderlines) as a from orders WHERE test_id=\"typeconv_func\" order by a ",
52   "results": [
53        {
54            "a": false
55        },
56        {
57            "a": false
58        },
59        {
60            "a": false
61        },
62        {
63            "a": false
64        }
65    ]
66},
67{
68   "statements":"select IS_ATOM(orders.id) as a from orders WHERE test_id=\"typeconv_func\" order by a ",
69   "results": [
70        {
71            "a": true
72        },
73        {
74            "a": true
75        },
76        {
77            "a": true
78        },
79        {
80            "a": true
81        }
82    ]
83},
84{
85   "statements":"select IS_BOOLEAN(false) ",
86   "results": [
87        {
88            "$1": true
89        }
90    ]
91},
92{
93   "statements":"select IS_BOOLEAN(1) ",
94   "results": [
95        {
96            "$1": false
97        }
98    ]
99},
100{
101   "statements":"select IS_NUM(0) ",
102   "results": [
103        {
104            "$1": true
105        }
106    ]
107},
108{
109   "statements":"select IS_NUM([1,2]) ",
110   "results": [
111        {
112            "$1": false
113        }
114    ]
115},
116{
117   "statements":"select IS_OBJ(orders) as a from orders WHERE test_id=\"typeconv_func\"",
118   "results": [
119        {
120            "a": true
121        },
122        {
123            "a": true
124        },
125        {
126            "a": true
127        },
128        {
129            "a": true
130        }
131    ]
132},
133{
134   "statements":"select is_string(\"\")",
135   "results": [
136        {
137            "$1": true
138        }
139    ]
140},
141{
142    "statements":"SELECT TYPE(ARRAY productId FOR productId IN orderlines END) AS all_products FROM orders WHERE test_id=\"typeconv_func\" ORDER BY all_products ",
143    "results": [
144        {
145            "all_products": "array"
146        },
147        {
148            "all_products": "array"
149        },
150        {
151            "all_products": "array"
152        },
153        {
154            "all_products": "array"
155        }
156    ]
157},
158{
159   "statements":"select (ARRAY TYPE(c) for c in [ 1, \"yes\", true,[1,2], missing, null] END)  as ok ",
160   "results": [
161        {
162            "ok": [
163                "number",
164                "string",
165                "boolean",
166                "array",
167                "missing",
168                "null"
169            ]
170        }
171    ]
172}
173
174]
175