Hi everyone. I am trying to write a task to Insert...
# ask-the-community
o
Hi everyone. I am trying to write a task to Insert a row into Postgres table. Because there is very little guide on Insert, so can anyone provide me any documentation on this issue? Thanks you for help.
Use
insert into …
in query_template
o
insert does not return results. so, what should I define in "output_schema_type" field?
k
just set it to None
Copy code
output_schema_type=None
👍 1
o
This is my code. and error after compile.
k
@Kevin Su seems None is not handled
👍 1
Can we Do it
o
It seems that Flyte task must have a return result
k
yes, but
None
should be acceptable. @Oliver Nguyen sorry, I’ll fix it.
162 Views