fixup! use a relation visitor in the Planner to get TableRelation