1[
2    {
3        "testcase": "Non covered. Explain",
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 'IndexScan%' AND v.covers IS MISSING END"
13        },
14        "statements": "SELECT c0, cx FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 1",
15        "results": [
16            {
17                "c0": 2
18            },
19            {
20                "c0": 2
21            },
22            {
23                "c0": 2
24            },
25            {
26                "c0": 2
27            },
28            {
29                "c0": 2
30            },
31            {
32                "c0": 2
33            },
34            {
35                "c0": 2
36            },
37            {
38                "c0": 2
39            },
40            {
41                "c0": 2
42            },
43            {
44                "c0": 2
45            },
46            {
47                "c0": 2
48            },
49            {
50                "c0": 2
51            },
52            {
53                "c0": 2
54            },
55            {
56                "c0": 2
57            },
58            {
59                "c0": 2
60            },
61            {
62                "c0": 2
63            },
64            {
65                "c0": 2
66            },
67            {
68                "c0": 2
69            },
70            {
71                "c0": 2
72            },
73            {
74                "c0": 2
75            }
76        ]
77    },
78    {
79        "testcase": "Non covered. PushDowns: OFFSET, LIMIT.Explain",
80        "ignore": "index_id",
81        "explain": {
82            "disabled": false,
83            "results": [
84                {
85                    "present": true
86                }
87            ],
88            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS MISSING AND v.`offset` IS NOT MISSING AND v.`limit` IS NOT MISSING END"
89        },
90        "statements": "SELECT 1 AS cons, cx FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 0 OFFSET 10 LIMIT 2",
91        "results": [
92            {
93                "cons": 1
94            },
95            {
96                "cons": 1
97            }
98        ]
99    },
100    {
101        "testcase": "Non covered. PushDowns: ORDER, OFFSET, LIMIT.Explain",
102        "ignore": "index_id",
103        "explain": {
104            "disabled": false,
105            "results": [
106                {
107                    "present": true
108                }
109            ],
110            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS MISSING AND v.index_order IS NOT MISSING AND v.`offset` IS NOT MISSING AND v.`limit` IS NOT MISSING END"
111        },
112        "statements": "SELECT c0, cx FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 0 ORDER BY c0 OFFSET 10 LIMIT 2",
113        "ordered": true,
114        "results": [
115            {
116                "c0": 1
117            },
118            {
119                "c0": 1
120            }
121        ]
122    },
123    {
124        "testcase": "Non covered. No-PushDowns: ORDER, OFFSET, LIMIT.Explain",
125        "ignore": "index_id",
126        "explain": {
127            "disabled": false,
128            "results": [
129                {
130                    "present": true
131                }
132            ],
133            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS MISSING AND v.index_order IS MISSING AND v.`offset` IS MISSING AND v.`limit` IS MISSING END"
134        },
135        "statements": "SELECT c1, cx FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 0 ORDER BY c1 OFFSET 1 LIMIT 2",
136        "results": [
137            {
138                "c1": 10
139            },
140            {
141                "c1": 10
142            }
143        ]
144    },
145    {
146        "testcase": "No group/aggregate PushDowns. Explain",
147        "ignore": "index_id",
148        "explain": {
149            "disabled": false,
150            "results": [
151                {
152                    "present": true
153                }
154            ],
155            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS MISSING AND v.index_group_aggs IS MISSING END"
156        },
157        "statements": "SELECT SUM(cx) AS sumcx FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 0",
158        "results": [
159            {
160                "sumcx": null
161            }
162        ]
163    },
164    {
165        "testcase": "No group/aggregate PushDowns. Explain",
166        "ignore": "index_id",
167        "explain": {
168            "disabled": false,
169            "results": [
170                {
171                    "present": true
172                }
173            ],
174            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS MISSING AND v.index_group_aggs IS MISSING END"
175        },
176        "statements": "SELECT SUM(c0) AS sumc0 FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 0 GROUP BY cx",
177        "results": [
178            {
179                "sumc0": 60
180            }
181        ]
182    },
183    {
184        "testcase": "No group/aggregate PushDowns. Explain",
185        "ignore": "index_id",
186        "explain": {
187            "disabled": false,
188            "results": [
189                {
190                    "present": true
191                }
192            ],
193            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS MISSING AND v.index_group_aggs IS MISSING END"
194        },
195        "statements": "SELECT SUM(c0) AS sumc0 FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 0  AND cx IS MISSING GROUP BY c0",
196        "results": [
197            {
198                "sumc0": 40
199            },
200            {
201                "sumc0": 20
202            }
203        ]
204    },
205    {
206        "testcase": "No group/aggregate PushDowns. Explain",
207        "ignore": "index_id",
208        "explain": {
209            "disabled": false,
210            "results": [
211                {
212                    "present": true
213                }
214            ],
215            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS NOT MISSING AND v.index_group_aggs IS MISSING END"
216        },
217        "statements": "SELECT COUNT(test_id) AS cnt FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 1",
218        "results": [
219            {
220                "cnt": 20
221            }
222        ]
223    },
224    {
225        "testcase": "No group/aggregate PushDowns. Explain",
226        "ignore": "index_id",
227        "explain": {
228            "disabled": false,
229            "results": [
230                {
231                    "present": true
232                }
233            ],
234            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` LIKE 'IndexScan%' AND v.covers IS NOT MISSING AND v.index_group_aggs IS MISSING END"
235        },
236        "statements": "SELECT COUNT(1) AS cnt FROM orders WHERE (test_id = 'indexga' AND type = 'numeric') AND  c0 > 1 GROUP BY test_id",
237        "results": [
238            {
239                "cnt": 20
240            }
241        ]
242    }
243]
244