create table r3 (c1 int, c2 int) distributed replicated;
explain with cte1 as (insert into r3 values (1, 2) returning *) select * from cte1 join r3 using(c1);
FATAL: Unexpected internal error (assert.c:44)
DETAIL: FailedAssertion("!(!((outer.locus).locustype == CdbLocusType_Replicated))", File: "cdbpath.c", Line: 1315)
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.