Hello
I have a table that has a column defined as an identity (BIGINT GENERATED ALWAYS AS IDENTITY)
I will be inserting rows into this table in parallel
How can I get the identity and use that within a pipeline
Parallel is relevant as there will be multiple inserts passed to multiple next steps at the same time
e.g. workflow (multiple streams in parallel): Task 1 - insert a row; Task 2 - Insert rows into another table including the identity value from task 1; Task 3 - Insert rows into another table including the identity value from task 1 etc.
In SQL Server, I would just insert a row and return @@identity
Then just pass this around using stored procedure(s)
Thanks