pub fn bind_source_plan_relations<E>( source: &mut SourcePlan, visible_ctes: &BTreeSet<String>, resolve: &mut impl FnMut(&str) -> Result<String, E>, ) -> Result<(), E>