This is an example of a test that should probably only run against replicated tables, even when partitioned tables get added to the "all tables" list. 

Other test queries like the previous one above that only use replicated data in the parent query should be able to run on all tables in the future.

There are other tricky edge cases involving parent queries on replicated tables and aggregating subqueries that require careful planning and qualification when applied to partitioned subquery data. The logic will be similar to what was implemented for joining materialized views -- special cases for grouping by partitioned keys, etc.