Join Slack
Powered by
Hi community, I am working on <https://github.com/...
# flyte-support
f
flaky-daybreak-42119
08/10/2023, 7:02 AM
Hi community, I am working on
https://github.com/flyteorg/flyte/issues/3026
. What in my mind is adding a type transformer at
https://github.com/troychiu/flytekit/blob/edfa76739d1064822af44e0addc924e381d3a5ad/flytekit/core/type_engine.py#L1656
and adding a corresponding type at flyteidl. If this is correct, what's the flow of testing it? 1. Compile the proto and convert it as a python package. 2. Use the new generated package to test flytekit. Is it correct?
t
tall-lock-23197
08/10/2023, 10:49 AM
cc
@glamorous-carpet-83516
g
glamorous-carpet-83516
08/10/2023, 5:06 PM
Hi. Welcome. you don’t really need to create a new type in IDL. you could just translate date to
Datetime
in idl • to_literal: python date ->
literal.duration
• to_python: literal.duration -> python date
Open in Slack
Previous
Next