Wrap the relation in a Subquery named by the table name in OverrideCatalog.lookupRelation.