You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "shoyer (via GitHub)" <gi...@apache.org> on 2024/11/05 21:43:34 UTC
[I] [Bug]: grouping with numpy.datetime64 keys gives silently incorrect behavior [beam]
shoyer opened a new issue, #33021:
URL: https://github.com/apache/beam/issues/33021
### What happened?
All NumPy datetime64 values seem to get mapped to "not a time" (NaT):
```
import numpy as np
import apache_beam as beam
inputs = [(np.datetime64('2000-01-01'), 'first'), (np.datetime64('2000-01-02'), 'second')]
print(inputs | beam.GroupByKey())
# [(numpy.datetime64('NaT'), ['first', 'second'])]
```
This looks like potentially the same underlying issue as https://github.com/apache/beam/issues/33020 (incorrect handling of NumPy's int64, which gets mapped to zero)
### Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
### Issue Components
- [X] Component: Python SDK
- [ ] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: grouping with numpy.datetime64 keys gives silently incorrect behavior [beam]
Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad closed issue #33021: [Bug]: grouping with numpy.datetime64 keys gives silently incorrect behavior
URL: https://github.com/apache/beam/issues/33021
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@beam.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org