Drops mview tables and seed tables.
Queries the system catalog to find all existing MVs (catching any that were
created server-side after a client-side timeout). Drops leaf MVs (those with
no dependents) each iteration without CASCADE, so genuine dependency bugs
surface as real errors rather than being silently swallowed.
Run query, handle permissible errors
For recovery error, just do bounded retry.
For other errors, validate them accordingly, skipping if they are permitted.
Otherwise just return success.
If takes too long return the query which timed out + execution time + timeout error
Returns: Number of skipped queries, number of rows returned.
Test batch queries, returns skipped query statistics
Runs in distributed mode, since queries can be complex and cause overflow in local execution
mode.