1[
2    {
3        "testcase": "",
4        "ignore": "index_id",
5        "explain": {
6            "disabled": false,
7            "results": [
8                {
9                    "present": true
10                }
11            ],
12            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'CountScan%' END"
13        },
14        "statements": "SELECT COUNT(1) AS cnt FROM orders",
15        "results": [
16            {
17                "cnt": 47
18            }
19        ]
20    },
21    {
22        "testcase": "",
23        "ignore": "index_id",
24        "explain": {
25            "disabled": false,
26            "results": [
27                {
28                    "present": true
29                }
30            ],
31            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'CountScan%' END"
32        },
33        "statements": "SELECT COUNT(*) AS cnt FROM orders",
34        "results": [
35            {
36                "cnt": 47
37            }
38        ]
39    },
40    {
41        "testcase": "",
42        "ignore": "index_id",
43        "explain": {
44            "disabled": false,
45            "results": [
46                {
47                    "present": true
48                }
49            ],
50            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'PrimaryScan%' END"
51        },
52        "statements": "SELECT COUNT(c0) AS cnt FROM orders",
53        "results": [
54            {
55                "cnt": 46
56            }
57        ]
58    },
59    {
60        "testcase": "",
61        "ignore": "index_id",
62        "explain": {
63            "disabled": false,
64            "results": [
65                {
66                    "present": true
67                }
68            ],
69            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.index_order IS NOT MISSING AND v.`limit` IS NOT MISSING AND v.`offset` IS NOT MISSING END"
70        },
71        "ordered": true,
72        "statements": "SELECT META().id FROM orders ORDER BY META().id LIMIT 10 OFFSET 20",
73        "results": [
74            {
75                "id": "ga2000"
76            },
77            {
78                "id": "ga2001"
79            },
80            {
81                "id": "ga2002"
82            },
83            {
84                "id": "ga2003"
85            },
86            {
87                "id": "ga2004"
88            },
89            {
90                "id": "ga2005"
91            },
92            {
93                "id": "ga2006"
94            },
95            {
96                "id": "ga2007"
97            },
98            {
99                "id": "ga2008"
100            },
101            {
102                "id": "ga2009"
103            }
104        ]
105    },
106    {
107        "testcase": "",
108        "ignore": "index_id",
109        "explain": {
110            "disabled": false,
111            "results": [
112                {
113                    "present": true
114                }
115            ],
116            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.index_order IS MISSING AND v.`limit` IS NOT MISSING AND v.`offset` IS NOT MISSING END"
117        },
118        "ordered": false,
119        "statements": "SELECT META().id,x1 FROM orders LIMIT 10 OFFSET 20",
120        "results": [
121            {
122                "id": "ga2000"
123            },
124            {
125                "id": "ga2001"
126            },
127            {
128                "id": "ga2002"
129            },
130            {
131                "id": "ga2003"
132            },
133            {
134                "id": "ga2004"
135            },
136            {
137                "id": "ga2005"
138            },
139            {
140                "id": "ga2006"
141            },
142            {
143                "id": "ga2007"
144            },
145            {
146                "id": "ga2008"
147            },
148            {
149                "id": "ga2009"
150            }
151        ]
152    },
153    {
154        "testcase": "",
155        "ignore": "index_id",
156        "explain": {
157            "disabled": false,
158            "results": [
159                {
160                    "present": true
161                }
162            ],
163            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.index_order IS NOT MISSING AND v.`limit` IS NOT MISSING AND v.`offset` IS NOT MISSING END"
164        },
165        "ordered": true,
166        "statements": "SELECT META().id,x1 FROM orders ORDER BY META().id LIMIT 10 OFFSET 20",
167        "results": [
168            {
169                "id": "ga2000"
170            },
171            {
172                "id": "ga2001"
173            },
174            {
175                "id": "ga2002"
176            },
177            {
178                "id": "ga2003"
179            },
180            {
181                "id": "ga2004"
182            },
183            {
184                "id": "ga2005"
185            },
186            {
187                "id": "ga2006"
188            },
189            {
190                "id": "ga2007"
191            },
192            {
193                "id": "ga2008"
194            },
195            {
196                "id": "ga2009"
197            }
198        ]
199    },
200    {
201        "testcase": "",
202        "ignore": "index_id",
203        "explain": {
204            "disabled": false,
205            "results": [
206                {
207                    "present": true
208                }
209            ],
210            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.index_order IS NOT MISSING AND v.`limit` IS NOT MISSING AND v.`offset` IS NOT MISSING END"
211        },
212        "ordered": true,
213        "statements": "SELECT META().id,x1 FROM orders WHERE xx IS MISSING ORDER BY META().id LIMIT 10 OFFSET 20",
214        "results": [
215            {
216                "id": "ga2000"
217            },
218            {
219                "id": "ga2001"
220            },
221            {
222                "id": "ga2002"
223            },
224            {
225                "id": "ga2003"
226            },
227            {
228                "id": "ga2004"
229            },
230            {
231                "id": "ga2005"
232            },
233            {
234                "id": "ga2006"
235            },
236            {
237                "id": "ga2007"
238            },
239            {
240                "id": "ga2008"
241            },
242            {
243                "id": "ga2009"
244            }
245        ]
246    },
247    {
248        "testcase": "",
249        "ignore": "index_id",
250        "explain": {
251            "disabled": false,
252            "results": [
253                {
254                    "present": true
255                }
256            ],
257            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.index_group_aggs IS NOT MISSING END"
258        },
259        "statements": "SELECT COUNT(META().id) AS cnt, SUM(TONUMBER(SUBSTR(META().id,2,4))) AS s FROM orders",
260        "results": [
261            {
262                "cnt": 47,
263                "s": 61757
264            }
265        ]
266    },
267    {
268        "testcase": "",
269        "ignore": "index_id",
270        "explain": {
271            "disabled": false,
272            "results": [
273                {
274                    "present": true
275                }
276            ],
277            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.index_group_aggs IS NOT MISSING END"
278        },
279        "statements": "SELECT COUNT(META().id) AS a, AVG(TONUMBER(SUBSTR(META().id,2,4))) AS s FROM orders",
280        "results": [
281            {
282                "a": 47,
283                "s": 1313.9787234042553
284            }
285        ]
286    },
287    {
288        "testcase": "",
289        "ignore": "index_id",
290        "explain": {
291            "disabled": false,
292            "results": [
293                {
294                    "present": true
295                }
296            ],
297            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.index_group_aggs IS NOT MISSING END"
298        },
299        "statements": "SELECT COUNT(META().id) AS cnt, SUM(TONUMBER(SUBSTR(META().id,2,4))) AS s FROM orders GROUP BY META().id",
300        "ordered": false,
301        "results": [
302            {
303                "cnt": 1,
304                "s": 0
305            },
306            {
307                "cnt": 1,
308                "s": 1
309            },
310            {
311                "cnt": 1,
312                "s": 2
313            },
314            {
315                "cnt": 1,
316                "s": 3
317            },
318            {
319                "cnt": 1,
320                "s": 4
321            },
322            {
323                "cnt": 1,
324                "s": 5
325            },
326            {
327                "cnt": 1,
328                "s": 6
329            },
330            {
331                "cnt": 1,
332                "s": 7
333            },
334            {
335                "cnt": 1,
336                "s": 8
337            },
338            {
339                "cnt": 1,
340                "s": 9
341            },
342            {
343                "cnt": 1,
344                "s": 10
345            },
346            {
347                "cnt": 1,
348                "s": 11
349            },
350            {
351                "cnt": 1,
352                "s": 12
353            },
354            {
355                "cnt": 1,
356                "s": 13
357            },
358            {
359                "cnt": 1,
360                "s": 14
361            },
362            {
363                "cnt": 1,
364                "s": 15
365            },
366            {
367                "cnt": 1,
368                "s": 16
369            },
370            {
371                "cnt": 1,
372                "s": 17
373            },
374            {
375                "cnt": 1,
376                "s": 18
377            },
378            {
379                "cnt": 1,
380                "s": 19
381            },
382            {
383                "cnt": 1,
384                "s": 2000
385            },
386            {
387                "cnt": 1,
388                "s": 2001
389            },
390            {
391                "cnt": 1,
392                "s": 2002
393            },
394            {
395                "cnt": 1,
396                "s": 2003
397            },
398            {
399                "cnt": 1,
400                "s": 2004
401            },
402            {
403                "cnt": 1,
404                "s": 2005
405            },
406            {
407                "cnt": 1,
408                "s": 2006
409            },
410            {
411                "cnt": 1,
412                "s": 2007
413            },
414            {
415                "cnt": 1,
416                "s": 2008
417            },
418            {
419                "cnt": 1,
420                "s": 2009
421            },
422            {
423                "cnt": 1,
424                "s": 2010
425            },
426            {
427                "cnt": 1,
428                "s": 2011
429            },
430            {
431                "cnt": 1,
432                "s": 2012
433            },
434            {
435                "cnt": 1,
436                "s": 2013
437            },
438            {
439                "cnt": 1,
440                "s": 2014
441            },
442            {
443                "cnt": 1,
444                "s": 2015
445            },
446            {
447                "cnt": 1,
448                "s": 2016
449            },
450            {
451                "cnt": 1,
452                "s": 2017
453            },
454            {
455                "cnt": 1,
456                "s": 2018
457            },
458            {
459                "cnt": 1,
460                "s": 2019
461            },
462            {
463                "cnt": 1,
464                "s": 3050
465            },
466            {
467                "cnt": 1,
468                "s": 3051
469            },
470            {
471                "cnt": 1,
472                "s": 3052
473            },
474            {
475                "cnt": 1,
476                "s": 3053
477            },
478            {
479                "cnt": 1,
480                "s": 3056
481            },
482            {
483                "cnt": 1,
484                "s": 3057
485            },
486            {
487                "cnt": 1,
488                "s": 3058
489            }
490        ]
491    },
492    {
493        "testcase": "",
494        "ignore": "index_id",
495        "explain": {
496            "disabled": false,
497            "results": [
498                {
499                    "present": true
500                }
501            ],
502            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'PrimaryScan%' AND v.index_group_aggs IS MISSING AND v.`limit` IS MISSING AND v.`offset` IS MISSING END"
503        },
504        "statements": "SELECT c20, ARRAY_AGG(c21) AS a FROM orders GROUP BY c20 LIMIT 4 OFFSET 2",
505        "ordered": false,
506        "results": [
507        ]
508     }
509]
510