Attached patch fixes an oversight that tablesample cannot be used with
partitioned tables:
create table p (a int) partition by list (a);
select * from p tablesample bernoulli (50);
ERROR: TABLESAMPLE clause can only be applied to tables and materialized
views
Thanks,
Amit