Commit 060a3ef
authored
feat: query profiling part 2: asynchronous (#961)
* feat: support query profiling
* collection
* fix unit tests
* unit tests
* vector get and stream, unit tests
* aggregation get and stream, unit tests
* docstring
* query profile unit tests
* update base classes' method signature
* documentsnapshotlist unit tests
* func signatures
* undo client.py change
* transaction.get()
* lint
* system test
* fix shim test
* fix sys test
* fix sys test
* system test
* another system test
* skip system test in emulator
* stream generator unit tests
* coverage
* add system tests
* small fixes
* undo document change
* add system tests
* vector query system tests
* format
* fix system test
* comments
* add system tests
* improve stream generator
* type checking
* adding stars
* delete comment
* remove coverage requirements for type checking part
* add explain_options to StreamGenerator
* yield tuple instead
* raise exception when explain_metrics is absent
* refactor documentsnapshotlist into queryresultslist
* add comment
* improve type hint
* lint
* move QueryResultsList to stream_generator.py
* aggregation related type annotation
* transaction return type hint
* refactor QueryResultsList
* change stream generator to return ExplainMetrics instead of yield
* update aggregation query to use the new generator
* update query to use the new generator
* update vector query to use the new generator
* lint
* type annotations
* fix type annotation to be python 3.9 compatible
* fix type hint for python 3.8
* fix system test
* add test coverage
* use class method get_explain_metrics() instead of property explain_metrics
* feat: add explain_metrics to async generator
* async support for query
* system tests for query
* query profile for async vector query
* vector query system test
* async transaction
* async transaction system test
* async collection
* fix system test
* test coverage
* test coverage
* collection system test
* async aggregation
* lint
* cover
* lint
* aggregation system tests
* cover and fix system test
* delete type ignore
* improve type annotation
* mypy
* mypy
* address comments
* delete comments
* address comments1 parent 1d2a494 commit 060a3ef
File tree
25 files changed
+2189
-276
lines changed- google/cloud/firestore_v1
- tests
- system
- unit/v1
25 files changed
+2189
-276
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
72 | 80 | | |
73 | 81 | | |
74 | | - | |
| 82 | + | |
75 | 83 | | |
76 | 84 | | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
78 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
79 | 92 | | |
80 | 93 | | |
81 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
82 | 101 | | |
83 | 102 | | |
84 | 103 | | |
85 | 104 | | |
86 | 105 | | |
87 | 106 | | |
88 | | - | |
| 107 | + | |
| 108 | + | |
89 | 109 | | |
90 | 110 | | |
91 | 111 | | |
| |||
105 | 125 | | |
106 | 126 | | |
107 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
108 | 132 | | |
109 | 133 | | |
110 | | - | |
111 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
112 | 139 | | |
113 | 140 | | |
114 | 141 | | |
115 | 142 | | |
116 | 143 | | |
| 144 | + | |
117 | 145 | | |
118 | 146 | | |
119 | 147 | | |
| |||
124 | 152 | | |
125 | 153 | | |
126 | 154 | | |
127 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
128 | 161 | | |
129 | 162 | | |
130 | 163 | | |
131 | 164 | | |
132 | 165 | | |
133 | 166 | | |
134 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
135 | 170 | | |
136 | 171 | | |
137 | 172 | | |
| |||
150 | 185 | | |
151 | 186 | | |
152 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
153 | 192 | | |
154 | 193 | | |
155 | | - | |
| 194 | + | |
156 | 195 | | |
157 | 196 | | |
158 | 197 | | |
159 | 198 | | |
160 | 199 | | |
161 | 200 | | |
162 | 201 | | |
| 202 | + | |
163 | 203 | | |
164 | | - | |
| 204 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
195 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
196 | 201 | | |
197 | 202 | | |
198 | 203 | | |
| |||
207 | 212 | | |
208 | 213 | | |
209 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
210 | 219 | | |
211 | 220 | | |
212 | 221 | | |
213 | 222 | | |
214 | 223 | | |
215 | | - | |
| 224 | + | |
| 225 | + | |
216 | 226 | | |
217 | 227 | | |
| 228 | + | |
| 229 | + | |
218 | 230 | | |
219 | 231 | | |
220 | 232 | | |
| |||
223 | 235 | | |
224 | 236 | | |
225 | 237 | | |
226 | | - | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
227 | 241 | | |
228 | 242 | | |
229 | 243 | | |
| |||
250 | 264 | | |
251 | 265 | | |
252 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
253 | 271 | | |
254 | 272 | | |
255 | 273 | | |
256 | 274 | | |
257 | 275 | | |
258 | 276 | | |
| 277 | + | |
| 278 | + | |
259 | 279 | | |
260 | 280 | | |
0 commit comments