Support schemas and catalogs in TableQuery (#7827)

Change-Id: Ib8282dc77e3d06d49ce8815a3f4b036541d9acea