Join Slack
Powered by
Hi everyone, I am looking to take in a the output ...
# ask-the-community
r
Ryan Kuk
04/08/2023, 12:06 AM
Hi everyone, I am looking to take in a the output of SerializeToString from a proto as a param of a task. Flyte gives warnings when I use a byte as the type of the param. Does anyone know what the best way to do this would be?
k
Ketan (kumare3)
04/08/2023, 12:30 AM
hello
@Ryan Kuk
- firstly welcome to the community. Secondly - sadly this seems to be a missing base transformer -
https://github.com/flyteorg/flytekit/blob/e3cee8326c99ed34751752c922a5852ae38e43ac/flytekit/core/type_engine.py#L1522
(Its very easy to write one). So right now its getting pickled. For now can you use
str
type?
Ketan (kumare3)
04/08/2023, 12:30 AM
and / or you can contribute one
Ketan (kumare3)
04/08/2023, 12:30 AM
for
byte
type
r
Ryan Kuk
04/08/2023, 12:31 AM
thanks so much for replying! I have tried using str type but it give a warning so I was trying to see if there is a different way
k
Ketan (kumare3)
04/08/2023, 12:31 AM
what warning?
Ketan (kumare3)
04/08/2023, 12:32 AM
can you paste here?
r
Ryan Kuk
04/08/2023, 12:32 AM
oh sorry I said it the opposite way used bytes and got warning.
k
Ketan (kumare3)
04/08/2023, 2:08 AM
Ohh thr warning is - as a fallback flytekit will use pickling
150
Views
Open in Slack
Previous
Next