Commit 277faa9
authored
### Rationale for this change
See #48096, exposes `parquet.WriterProperties max_rows_per_page` argument to Python's API.
### What changes are included in this PR?
Added the argument
### Are these changes tested?
Yes, since the metadata doesn't have any info about the number of pages, a naive end-to-end test was used to ensure the implementation correctness.
### Are there any user-facing changes?
The ability to set the `max_rows_per_page` directly from PyArrow.
* GitHub Issue: #48096
Authored-by: Bogdan Romenskii <[email protected]>
Signed-off-by: Raúl Cumplido <[email protected]>
1 parent f096d48 commit 277faa9
File tree
6 files changed
+75
-0
lines changed- python/pyarrow
- includes
- parquet
- tests/parquet
6 files changed
+75
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
649 | 650 | | |
650 | 651 | | |
651 | 652 | | |
| |||
695 | 696 | | |
696 | 697 | | |
697 | 698 | | |
| 699 | + | |
698 | 700 | | |
699 | 701 | | |
700 | 702 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1984 | 1984 | | |
1985 | 1985 | | |
1986 | 1986 | | |
| 1987 | + | |
1987 | 1988 | | |
1988 | 1989 | | |
1989 | 1990 | | |
| |||
2129 | 2130 | | |
2130 | 2131 | | |
2131 | 2132 | | |
| 2133 | + | |
| 2134 | + | |
| 2135 | + | |
2132 | 2136 | | |
2133 | 2137 | | |
2134 | 2138 | | |
| |||
2300 | 2304 | | |
2301 | 2305 | | |
2302 | 2306 | | |
| 2307 | + | |
2303 | 2308 | | |
2304 | 2309 | | |
2305 | 2310 | | |
| |||
2340 | 2345 | | |
2341 | 2346 | | |
2342 | 2347 | | |
| 2348 | + | |
2343 | 2349 | | |
2344 | 2350 | | |
2345 | 2351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| 495 | + | |
495 | 496 | | |
496 | 497 | | |
497 | 498 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
795 | 795 | | |
796 | 796 | | |
797 | 797 | | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
798 | 802 | | |
799 | 803 | | |
800 | 804 | | |
| |||
1042 | 1046 | | |
1043 | 1047 | | |
1044 | 1048 | | |
| 1049 | + | |
1045 | 1050 | | |
1046 | 1051 | | |
1047 | 1052 | | |
| |||
1096 | 1101 | | |
1097 | 1102 | | |
1098 | 1103 | | |
| 1104 | + | |
1099 | 1105 | | |
1100 | 1106 | | |
1101 | 1107 | | |
| |||
1971 | 1977 | | |
1972 | 1978 | | |
1973 | 1979 | | |
| 1980 | + | |
1974 | 1981 | | |
1975 | 1982 | | |
1976 | 1983 | | |
| |||
2003 | 2010 | | |
2004 | 2011 | | |
2005 | 2012 | | |
| 2013 | + | |
2006 | 2014 | | |
2007 | 2015 | | |
2008 | 2016 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
0 commit comments