Description
the datasource filter should be push down, so there will be two subquery on this query
select count(1) from lineitem where i_partkey > (select max(p_partkey)-1000 from part)
One of the subquery will apply a rule about ReuseSubquery and generate a new plan, but the new plan will be ignored by method fastEquals() and subquery will be executed two times.