clause to limit the number of rows materialized. Ticket #2938. (CVS 4782) FossilOrigin-Name: 5ab71c3a79cac04cb2c576f83a62218d05571006