fix select with star(*) and add UT for it.