apache / apache/arrow

[Python] UTC Timezone Equality is case sensitive

Open
#39,809 3 comments 0 reactions 0 assignees View on GitHub
Component: Python Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

Not sure if this is a bug but I found the behavior surprising

```
>>> import pyarrow as pa
>>> pa.timestamp("us", "utc") == pa.timestamp("us", "utc")
True
>>> pa.timestamp("us", "utc") == pa.timestamp("us", "UTC")
False
```

I suppose it is doing a very literal string comparison on the timezone

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.