ENG-3164 Fix partitioning on matviews.