1[
2    {
3        "testcase": "Hash Join build inner on expression (corresponds to meta.id of outer). 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` = 'HashJoin' END"
13        },
14        "statements":"SELECT c.firstName, c.lastName, c.customerId, p.purchaseId FROM purchase p JOIN customer c USE HASH(build) ON meta(c).id = p.customerId || \"_\" || p.test_id WHERE p.purchaseId LIKE \"purchase655%\" ORDER BY p.purchaseId",
15        "ordered": true,
16        "results": [
17        {
18            "customerId": "customer494",
19            "firstName": "Nicolette",
20            "lastName": "Wilderman",
21            "purchaseId": "purchase655"
22        },
23        {
24            "customerId": "customer721",
25            "firstName": "Asia",
26            "lastName": "Hilpert",
27            "purchaseId": "purchase6550"
28        },
29        {
30            "customerId": "customer295",
31            "firstName": "Edmund",
32            "lastName": "Kertzmann",
33            "purchaseId": "purchase6551"
34        },
35        {
36            "customerId": "customer629",
37            "firstName": "Coralie",
38            "lastName": "O'Kon",
39            "purchaseId": "purchase6552"
40        },
41        {
42            "customerId": "customer451",
43            "firstName": "Bridie",
44            "lastName": "Daugherty",
45            "purchaseId": "purchase6553"
46        },
47        {
48            "customerId": "customer77",
49            "firstName": "Jett",
50            "lastName": "Brown",
51            "purchaseId": "purchase6554"
52        },
53        {
54            "customerId": "customer905",
55            "firstName": "Angelina",
56            "lastName": "Tillman",
57            "purchaseId": "purchase6555"
58        },
59        {
60            "customerId": "customer388",
61            "firstName": "Arnaldo",
62            "lastName": "Bosco",
63            "purchaseId": "purchase6556"
64        },
65        {
66            "customerId": "customer963",
67            "firstName": "Ronny",
68            "lastName": "Hackett",
69            "purchaseId": "purchase6557"
70        },
71        {
72            "customerId": "customer648",
73            "firstName": "Ruthe",
74            "lastName": "Rodriguez",
75            "purchaseId": "purchase6558"
76        },
77        {
78            "customerId": "customer931",
79            "firstName": "Karelle",
80            "lastName": "Konopelski",
81            "purchaseId": "purchase6559"
82        }
83    ]
84    },
85    {
86        "testcase": "Hash Join build outer on meta.id. Explain",
87        "ignore": "index_id",
88        "explain": {
89            "disabled": false,
90            "results": [
91                {
92                    "present": true
93                }
94            ],
95            "statement": "SELECT true AS present FROM $explan AS p WHERE ANY v WITHIN p.plan.`~children` SATISFIES v.`#operator` = 'HashJoin' END"
96        },
97        "statements":"SELECT c.firstName, c.lastName, c.customerId, p.purchaseId FROM customer c JOIN purchase p USE HASH(probe) ON meta(c).id = p.customerId || \"_\" || p.test_id WHERE c.lastName = \"Champlin\" AND p.customerId IS NOT NULL ORDER BY p.purchaseId LIMIT 10",
98        "ordered": true,
99        "results": [
100        {
101            "customerId": "customer60",
102            "firstName": "Bryon",
103            "lastName": "Champlin",
104            "purchaseId": "purchase104"
105        },
106        {
107            "customerId": "customer33",
108            "firstName": "Charles",
109            "lastName": "Champlin",
110            "purchaseId": "purchase1582"
111        },
112        {
113            "customerId": "customer33",
114            "firstName": "Charles",
115            "lastName": "Champlin",
116            "purchaseId": "purchase1704"
117        },
118        {
119            "customerId": "customer60",
120            "firstName": "Bryon",
121            "lastName": "Champlin",
122            "purchaseId": "purchase1747"
123        },
124        {
125            "customerId": "customer631",
126            "firstName": "Gladyce",
127            "lastName": "Champlin",
128            "purchaseId": "purchase2838"
129        },
130        {
131            "customerId": "customer631",
132            "firstName": "Gladyce",
133            "lastName": "Champlin",
134            "purchaseId": "purchase2872"
135        },
136        {
137            "customerId": "customer60",
138            "firstName": "Bryon",
139            "lastName": "Champlin",
140            "purchaseId": "purchase3344"
141        },
142        {
143            "customerId": "customer60",
144            "firstName": "Bryon",
145            "lastName": "Champlin",
146            "purchaseId": "purchase3698"
147        },
148        {
149            "customerId": "customer60",
150            "firstName": "Bryon",
151            "lastName": "Champlin",
152            "purchaseId": "purchase4142"
153        },
154        {
155            "customerId": "customer60",
156            "firstName": "Bryon",
157            "lastName": "Champlin",
158            "purchaseId": "purchase4315"
159        }
160    ]
161    }
162]
163
164