# This test verifies that the results of the subquery are consistent with the transaction. If we
# inadvertently reuse the previous results of the subquery during a retry, we might insert
# duplicate values.
#
# We insert a large filler string in the second column to generate range splits
# quicker.

repeat 2
statement ok
INSERT INTO T VALUES ((SELECT max(k+1) FROM T), repeat('x', 1000))
