Commit 7d834d6
authored
### Rationale for this change
Add a `use_threads` keyword to the `group_by` method on Table, and passes this through to the Declaration.to_table call. This also allows to specify `use_threads=False` to get stable ordering of the output, and which is also required to specify for certain aggregations (eg `"first"` will fail with the default of `use_threads=True`)
### Are these changes tested?
Yes, added a test (similar to the one we have for this for `filter`), that would fail (>50% of the times) if the output was no longer ordered.
* Closes: #36709
Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
1 parent 02de3c1 commit 7d834d6
4 files changed
Lines changed: 46 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
| 308 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4599 | 4599 | | |
4600 | 4600 | | |
4601 | 4601 | | |
4602 | | - | |
4603 | | - | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
4604 | 4605 | | |
4605 | 4606 | | |
4606 | 4607 | | |
| |||
4609 | 4610 | | |
4610 | 4611 | | |
4611 | 4612 | | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
4612 | 4616 | | |
4613 | 4617 | | |
4614 | 4618 | | |
| |||
4635 | 4639 | | |
4636 | 4640 | | |
4637 | 4641 | | |
4638 | | - | |
| 4642 | + | |
4639 | 4643 | | |
4640 | 4644 | | |
4641 | 4645 | | |
| |||
5183 | 5187 | | |
5184 | 5188 | | |
5185 | 5189 | | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
5186 | 5193 | | |
5187 | 5194 | | |
5188 | 5195 | | |
| |||
5208 | 5215 | | |
5209 | 5216 | | |
5210 | 5217 | | |
5211 | | - | |
| 5218 | + | |
5212 | 5219 | | |
5213 | 5220 | | |
5214 | 5221 | | |
5215 | 5222 | | |
5216 | 5223 | | |
| 5224 | + | |
5217 | 5225 | | |
5218 | 5226 | | |
5219 | 5227 | | |
| |||
5328 | 5336 | | |
5329 | 5337 | | |
5330 | 5338 | | |
5331 | | - | |
| 5339 | + | |
| 5340 | + | |
| 5341 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2175 | 2175 | | |
2176 | 2176 | | |
2177 | 2177 | | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
2178 | 2193 | | |
2179 | 2194 | | |
2180 | 2195 | | |
| |||
0 commit comments