**Summary** The current design of m cte is complex in supporting distribution. We'll refactor materialized cte runtime by temp table and then support distribution for m cte