https://flyte.org logo
o

Oliver Nguyen

06/21/2022, 3:46 AM
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

Oliver Nguyen

06/21/2022, 4:05 AM
insert does not return results. so, what should I define in "output_schema_type" field?
k

Kevin Su

06/21/2022, 4:07 AM
just set it to None
Copy code
output_schema_type=None
👍 1
o

Oliver Nguyen

06/21/2022, 4:13 AM
This is my code. and error after compile.
k

Ketan (kumare3)

06/21/2022, 4:26 AM
@Kevin Su seems None is not handled
👍 1
Can we Do it
o

Oliver Nguyen

06/21/2022, 4:34 AM
It seems that Flyte task must have a return result
k

Kevin Su

06/21/2022, 4:40 AM
yes, but
None
should be acceptable. @Oliver Nguyen sorry, I’ll fix it.
2 Views