Commit 95e37bf
fix: Index columns removed on s3.to_parquet (#2655)
* first go at a failing test
* pass missing dataset flag in test
* because we partition, do not specify full parquet paths during write
* use proper path in tests
* use reset_index to allow dropping the entire index
* test partitioning on full and partial index
* need to validate schema on read for issue to surface
* need to sort on index
* cross-test without partitioning
* print assertion error for remote debugging
* simplify test to just assert schema validation
* consistently handle regular and index columns casts
* use equality assertion utility, drop unnecessary sort
* add index partition test
* reformat
* undo categorical-specific dataframe creation in test
* try again to expect the right dtypes
* pull out toparquet kwargs
* expect test to fail when using modin and partitioning on full index
* manually assert unpartitioned index is still present, then reset full index
* handle change in promotion kwargs for pyarrow 14+
* move packaging import to correct location
* fix types for promotion kwargs
* test and handle unnamed index levels as well
---------
Co-authored-by: Robert Schmidtke <[email protected]>
Co-authored-by: kukushking <[email protected]>
Co-authored-by: Leon Luttenberger <[email protected]>1 parent d6caa93 commit 95e37bf
File tree
4 files changed
+83
-6
lines changed- awswrangler
- s3
- tests/unit
4 files changed
+83
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
567 | 569 | | |
568 | 570 | | |
569 | | - | |
| 571 | + | |
570 | 572 | | |
571 | 573 | | |
572 | 574 | | |
| |||
693 | 695 | | |
694 | 696 | | |
695 | 697 | | |
696 | | - | |
| 698 | + | |
697 | 699 | | |
698 | 700 | | |
699 | 701 | | |
700 | 702 | | |
701 | 703 | | |
702 | 704 | | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
703 | 718 | | |
704 | 719 | | |
705 | 720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
893 | 894 | | |
894 | 895 | | |
895 | 896 | | |
896 | | - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
897 | 902 | | |
898 | 903 | | |
899 | 904 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
165 | 167 | | |
166 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 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 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
509 | 564 | | |
510 | 565 | | |
511 | 566 | | |
| |||
0 commit comments