acoustic-carpenter-78188
08/11/2023, 8:30 PMdatetime.date
object for passing to or from tasks.
ValueError: Type <class 'datetime.date'> not supported currently in Flytekit. Please register a new transformer
In flytekit/core/type_engine.py
there are transformers for datetime.datetime
and datetime.timedelta
, but not for datetime.date
.
Goal: What should the final outcome look like, ideally?
Flyte tasks should be able to accept and return datetime.date
objects.
Describe alternatives you've considered
The workaround is to use a datetime.datetime
or to use a string of the form "YYYY-MM-DD".
Propose: Link/Inline OR Additional context
No response
Are you sure this issue hasn't been raised already?
☑︎ Yes
Have you read the Code of Conduct?
☑︎ Yes
flyteorg/flyteacoustic-carpenter-78188
08/11/2023, 8:30 PM