BUG: Postgres "Bulk Insert" runs forever if data query is NULL/UNDEFINED

The Postgres "Bulk Insert" runs forever if the underlying data query is NULL or UNDEFINED.
See here a screenshot as example, query2 is being used in query1 as the data source. If query2 never ran or failed during execution, query1 will run forever.
I would expect it to throw an error or run with 0 inserts, but not running forever.

My Retool version is 2.95.6 and it's running on-premise.

1 Like

Hey @Reboon thanks for flagging this behavior! For now, are you able to get your query working using something like {{ query2.data ?? [] }}?

1 Like

Yes I was able to make a workaround for the moment.