Commit 7f8ccb5
authored
### Rationale for this change
Page-level statistics are probably not used in production, and after adding column indexes they are useless.
parquet-mr already stopped writing them in https://issues.apache.org/jira/browse/PARQUET-1365.
### What changes are included in this PR?
Once page index is enabled for one column, it does not write page stats to the header any more.
### Are these changes tested?
Added a test to check page stats have been skipped.
### Are there any user-facing changes?
Yes (behavior change when page index is enabled).
* Closes: #34375
Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
1 parent 68cbc6f commit 7f8ccb5
4 files changed
Lines changed: 39 additions & 12 deletions
File tree
- cpp/src/parquet
- arrow
- docs/source/cpp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5252 | 5252 | | |
5253 | 5253 | | |
5254 | 5254 | | |
| 5255 | + | |
| 5256 | + | |
| 5257 | + | |
5255 | 5258 | | |
5256 | 5259 | | |
5257 | 5260 | | |
5258 | 5261 | | |
| 5262 | + | |
| 5263 | + | |
| 5264 | + | |
5259 | 5265 | | |
5260 | | - | |
5261 | | - | |
| 5266 | + | |
5262 | 5267 | | |
5263 | 5268 | | |
5264 | 5269 | | |
5265 | 5270 | | |
| 5271 | + | |
| 5272 | + | |
| 5273 | + | |
| 5274 | + | |
| 5275 | + | |
| 5276 | + | |
| 5277 | + | |
| 5278 | + | |
| 5279 | + | |
| 5280 | + | |
| 5281 | + | |
| 5282 | + | |
5266 | 5283 | | |
5267 | 5284 | | |
5268 | 5285 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
463 | | - | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
| |||
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
482 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
483 | 491 | | |
484 | 492 | | |
485 | 493 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
527 | | - | |
528 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
529 | 532 | | |
530 | 533 | | |
531 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
| 307 | + | |
| 308 | + | |
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| |||
573 | 575 | | |
574 | 576 | | |
575 | 577 | | |
576 | | - | |
| 578 | + | |
577 | 579 | | |
578 | | - | |
| 580 | + | |
579 | 581 | | |
580 | 582 | | |
581 | 583 | | |
582 | | - | |
| 584 | + | |
583 | 585 | | |
584 | 586 | | |
585 | 587 | | |
586 | 588 | | |
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
590 | | - | |
591 | | - | |
592 | | - | |
0 commit comments