This repository was archived by the owner on Oct 21, 2024. It is now read-only.
Commit c00dfe8
ARROW-7723: [Python] Triage untested functional regression when converting tz-aware timestamp inside struct to pandas/NumPy format
This is definitely a hack so I left notes everywhere and explained the problem in detail on the ARROW-7723 JIRA. This reverts behavior in this particular case to 0.15.1 but there is an inconsistency in the data types returned by `struct<f0: timestamp[us]>` versus `struct<f0: timestamp[ns]>`. The former returns a dict with `datetime.datetime` values while the latter has `int64` values (because nanoseconds can't be safely coerced to `datetime.datetime` in general).
It seems undesirable at the moment to have any downstream user depending on one behavior or the other at the moment but leaving the behavior unchanged for now (given that many systems -- e.g. Spark SQL -- don't have nanoseconds) seems acceptable.
Closes apache#6322 from wesm/ARROW-7723 and squashes the following commits:
05ab21b <Wes McKinney> pin pandas 0.25.3
2178977 <Wes McKinney> Add longer code comment explaining the hack
7142699 <Wes McKinney> Gross hack to avoid unwanted nanosecond promotion with tz-aware timestamp types
123d4b8 <Wes McKinney> Add failing unit test
Authored-by: Wes McKinney <wesm+git@apache.org>
Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>1 parent 7ee6936 commit c00dfe8
File tree
4 files changed
+44
-4
lines changed- ci/docker
- cpp/src/arrow/python
- python/pyarrow/tests
4 files changed
+44
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
622 | 633 | | |
623 | 634 | | |
624 | 635 | | |
625 | 636 | | |
626 | 637 | | |
627 | | - | |
628 | | - | |
| 638 | + | |
| 639 | + | |
629 | 640 | | |
630 | 641 | | |
631 | 642 | | |
| |||
1678 | 1689 | | |
1679 | 1690 | | |
1680 | 1691 | | |
1681 | | - | |
| 1692 | + | |
| 1693 | + | |
1682 | 1694 | | |
1683 | 1695 | | |
1684 | 1696 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
58 | 62 | | |
59 | 63 | | |
60 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3211 | 3211 | | |
3212 | 3212 | | |
3213 | 3213 | | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
3214 | 3236 | | |
3215 | 3237 | | |
3216 | 3238 | | |
| |||
0 commit comments