Commit c5fb605
authored
Move generate_series projection logic into LazyMemoryStream (#18373)
## Which issue does this PR close?
- None, This is a follow-up for
#18298
## Rationale for this change
This moves the projection logic from `generate_series` out of the
generator into `LazyMemoryStream` as discussed in
#18298 (comment)
This makes the projection logic generic for all generators.
## What changes are included in this PR?
The projection logic is moved from `generate_series` into the
`LazyMemoryStream` and relevant tests, where `LazyMemoryStream` is used,
are adapted accordingly.
## Are these changes tested?
This is only a small refactoring; the changes are covered by the tests
from #18298
## Are there any user-facing changes?
There is a new parameter added to LazyMemoryExec::try_new method1 parent db5f47c commit c5fb605
File tree
3 files changed
+36
-20
lines changed- datafusion
- functions-table/src
- physical-plan/src
- proto/src/physical_plan
3 files changed
+36
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
| |||
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
259 | | - | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
| |||
297 | 295 | | |
298 | 296 | | |
299 | 297 | | |
300 | | - | |
301 | 298 | | |
302 | 299 | | |
303 | 300 | | |
| |||
327 | 324 | | |
328 | 325 | | |
329 | 326 | | |
330 | | - | |
331 | 327 | | |
332 | 328 | | |
333 | 329 | | |
| |||
345 | 341 | | |
346 | 342 | | |
347 | 343 | | |
348 | | - | |
349 | 344 | | |
350 | 345 | | |
351 | 346 | | |
| |||
401 | 396 | | |
402 | 397 | | |
403 | 398 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
| 399 | + | |
409 | 400 | | |
410 | 401 | | |
411 | 402 | | |
| |||
481 | 472 | | |
482 | 473 | | |
483 | 474 | | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
| 475 | + | |
490 | 476 | | |
491 | | - | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
492 | 481 | | |
493 | 482 | | |
494 | 483 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
208 | 226 | | |
209 | 227 | | |
210 | 228 | | |
| |||
320 | 338 | | |
321 | 339 | | |
322 | 340 | | |
| 341 | + | |
323 | 342 | | |
324 | 343 | | |
325 | 344 | | |
| |||
338 | 357 | | |
339 | 358 | | |
340 | 359 | | |
| 360 | + | |
| 361 | + | |
341 | 362 | | |
342 | 363 | | |
343 | 364 | | |
| |||
361 | 382 | | |
362 | 383 | | |
363 | 384 | | |
364 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
365 | 393 | | |
366 | 394 | | |
367 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1940 | 1940 | | |
1941 | 1941 | | |
1942 | 1942 | | |
1943 | | - | |
1944 | | - | |
| 1943 | + | |
1945 | 1944 | | |
1946 | 1945 | | |
1947 | 1946 | | |
| |||
0 commit comments