Describe the bug
Any physical query plan that incorporates filtering logic alongside row limitation consistently results in an internal error being raised."
To Reproduce
set datafusion.execution.target_partitions = '1';
set datafusion.execution.batch_size = '1';
create table test (i INTEGER) as values (1), (2);
select * from test where i <> 0 limit 1;
Expected behavior
No internal error should be raised.
Additional context
No response