You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 20:56:40 UTC

[GitHub] [beam] damccorm opened a new issue, #21034: datetime.date not working with Distinct()

damccorm opened a new issue, #21034:
URL: https://github.com/apache/beam/issues/21034

   I was using 2.28.0 and running a standard Distinct on a PColl of datetime.dates without problems.
   
   After upgrading to 2.31.0, I'm getting this error:
   
   TypeError: Unable to deterministically encode '2020-12-02' of type '<class 'datetime.date'\>', please provide a type hint for the input of 'Get the unique dates from prices/Group/GroupByKey' [while running 'Get the unique dates from prices/ToPairs']
   
   Had convert the date to str and back to date after running the Distinct() to preserve the date type. Any clues?
   
   Imported from Jira [BEAM-12717](https://issues.apache.org/jira/browse/BEAM-12717). Original Jira may contain additional context.
   Reported by: sketzig.


-- 
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