Commit e0ccfa1
ARROW-16700: [C++][R][Datasets] aggregates on partitioning columns (#13518)
This updates the Scanner node such that it will use the guarantee expression to fill out columns missing from the dataset but guaranteed to be some constant with appropriate scalars, rather than just inserting a null placeholder column. In case both are available, the dataset constructor prefers using the scalar from the guarantee expression over the actual data, since the latter would probably be an array that unnecessarily repeats the constant value.
This is the other part of what was uncovered while analyzing ARROW-16700, the more direct cause being a duplicate of ARROW-16904 (see also #13509 for my fix for that).
Lead-authored-by: Jeroen van Straten <[email protected]>
Co-authored-by: Aldrin M <[email protected]>
Co-authored-by: octalene <[email protected]>
Co-authored-by: Aldrin Montana <[email protected]>
Co-authored-by: Weston Pace <[email protected]>
Signed-off-by: Weston Pace <[email protected]>1 parent b3ce0fa commit e0ccfa1
File tree
4 files changed
+73
-53
lines changed- cpp/src/arrow
- compute/exec
- dataset
4 files changed
+73
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
| 460 | + | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| 465 | + | |
464 | 466 | | |
465 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
466 | 471 | | |
467 | | - | |
468 | | - | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
469 | 482 | | |
| 483 | + | |
470 | 484 | | |
471 | 485 | | |
472 | 486 | | |
| |||
490 | 504 | | |
491 | 505 | | |
492 | 506 | | |
493 | | - | |
| 507 | + | |
494 | 508 | | |
495 | 509 | | |
496 | 510 | | |
497 | 511 | | |
498 | 512 | | |
499 | | - | |
| 513 | + | |
| 514 | + | |
500 | 515 | | |
501 | 516 | | |
502 | 517 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
| 230 | + | |
230 | 231 | | |
231 | 232 | | |
232 | 233 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
900 | 900 | | |
901 | 901 | | |
902 | 902 | | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | 903 | | |
907 | 904 | | |
908 | 905 | | |
| |||
911 | 908 | | |
912 | 909 | | |
913 | 910 | | |
914 | | - | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
915 | 917 | | |
916 | 918 | | |
917 | 919 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
1371 | 1372 | | |
1372 | 1373 | | |
1373 | 1374 | | |
1374 | | - | |
1375 | | - | |
| 1375 | + | |
| 1376 | + | |
1376 | 1377 | | |
1377 | 1378 | | |
1378 | 1379 | | |
| 1380 | + | |
1379 | 1381 | | |
1380 | 1382 | | |
1381 | 1383 | | |
1382 | | - | |
1383 | | - | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
1384 | 1388 | | |
1385 | 1389 | | |
1386 | 1390 | | |
| |||
1390 | 1394 | | |
1391 | 1395 | | |
1392 | 1396 | | |
1393 | | - | |
| 1397 | + | |
1394 | 1398 | | |
1395 | 1399 | | |
| 1400 | + | |
1396 | 1401 | | |
1397 | 1402 | | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
1402 | 1407 | | |
1403 | 1408 | | |
1404 | 1409 | | |
1405 | 1410 | | |
1406 | 1411 | | |
1407 | | - | |
1408 | | - | |
1409 | | - | |
1410 | | - | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1411 | 1419 | | |
1412 | 1420 | | |
1413 | 1421 | | |
1414 | | - | |
| 1422 | + | |
1415 | 1423 | | |
1416 | 1424 | | |
1417 | 1425 | | |
1418 | | - | |
1419 | | - | |
1420 | | - | |
| 1426 | + | |
| 1427 | + | |
1421 | 1428 | | |
1422 | 1429 | | |
1423 | | - | |
| 1430 | + | |
1424 | 1431 | | |
1425 | 1432 | | |
1426 | 1433 | | |
| |||
1437 | 1444 | | |
1438 | 1445 | | |
1439 | 1446 | | |
1440 | | - | |
1441 | | - | |
1442 | | - | |
1443 | | - | |
1444 | | - | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
1455 | | - | |
1456 | | - | |
1457 | | - | |
1458 | | - | |
1459 | | - | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
1465 | 1467 | | |
1466 | 1468 | | |
1467 | 1469 | | |
| |||
0 commit comments