Eng 5178 mv partition join

Ready to be reviewed. 

(1)SQL coverage test cases are included. 
(2)Fixes about distinct are also included. 
(3)Other fixes for original sql coverage are include.
(4)Three table inner joins are added.