-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Drop timezone in from_arrow (#3392)
* Drop timezone in from_arrow * Add doc and test
- Loading branch information
1 parent
3d14f2e
commit 7cbca98
Showing
4 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
from __future__ import annotations | ||
|
||
import pytest | ||
|
||
import awkward as ak | ||
|
||
pa = pytest.importorskip("pyarrow") | ||
|
||
|
||
def test_tz_is_dropped(): | ||
data = pa.Table.from_arrays( | ||
[ | ||
pa.array( | ||
[ | ||
1, | ||
2, | ||
3, | ||
], | ||
type=pa.timestamp("ns", tz="UTC"), | ||
) | ||
], | ||
names=["a"], | ||
) | ||
ak.from_arrow(data) | ||
ak.from_arrow_schema(data.schema) |