Commit 13fe34b
authored
[query] Lift backend state into
This change extracts common "driver" logic and state out of the various
backend classes into two new classes:
- `BatchQueryDriver`
- `Py4JQueryDriver`
These drivers handle requests from the python clients via their
respective rpc apis. The `BackendRpc` trait implements the core logic of
reading a command, dispatching to the backend for execution, and
responding to the user. Each driver implements the specifics of
- how requests are handled
- over http in the case of py4j
- via object storage for batch
- how execute contexts are created
- how state is managed between requests
With this, driver state and lifecycle becomes decoupled from how queries
are executed (ie which "backend" implementation). It would be trivial to
use a `ServiceBackend` with the `Py4JQueryDriver` to test generated code
on batch without building and uploading a query jar.(Batch|Py4J)QueryDriver (#14698)1 parent 04647b5 commit 13fe34b
File tree
86 files changed
+2000
-2193
lines changed- hail
- hail
- src/is/hail
- backend
- driver
- local
- py4j
- service
- spark
- expr/ir
- functions
- lowering
- io
- plink
- vcf
- linalg
- methods
- rvd
- sparkextras
- types/virtual
- utils
- variant
- test/src/is/hail
- annotations
- backend
- expr/ir
- analyses
- lowering
- table
- io
- compress
- fs
- linalg
- methods
- stats
- utils
- variant
- python
- hail
- backend
- test/hail
- backend
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
86 files changed
+2000
-2193
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
| 351 | + | |
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | | - | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
153 | 154 | | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | | - | |
180 | | - | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
| |||
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
| 191 | + | |
193 | 192 | | |
194 | 193 | | |
195 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
5 | 4 | | |
6 | | - | |
| 5 | + | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
| 9 | + | |
13 | 10 | | |
14 | 11 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 12 | + | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | | - | |
22 | | - | |
| 16 | + | |
23 | 17 | | |
24 | | - | |
25 | | - | |
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
| |||
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
41 | | - | |
| 33 | + | |
42 | 34 | | |
43 | 35 | | |
44 | | - | |
45 | 36 | | |
46 | 37 | | |
47 | 38 | | |
48 | 39 | | |
49 | 40 | | |
50 | | - | |
| 41 | + | |
51 | 42 | | |
52 | 43 | | |
53 | 44 | | |
54 | 45 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 46 | | |
59 | 47 | | |
60 | 48 | | |
| |||
82 | 70 | | |
83 | 71 | | |
84 | 72 | | |
85 | | - | |
86 | | - | |
| 73 | + | |
| 74 | + | |
87 | 75 | | |
88 | 76 | | |
89 | 77 | | |
| |||
116 | 104 | | |
117 | 105 | | |
118 | 106 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | 107 | | |
| 108 | + | |
| 109 | + | |
185 | 110 | | |
This file was deleted.
0 commit comments