Hi everyone, I am looking to take in a the output ...
# ask-the-community
r
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
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?
and / or you can contribute one
for
byte
type
r
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
what warning?
can you paste here?
r
oh sorry I said it the opposite way used bytes and got warning.
k
Ohh thr warning is - as a fallback flytekit will use pickling
150 Views