Fix the failed test case TestMaterializedViewSuite, Currently there is a count(*) bug. Throw errors when there is a joined query on mv table