alamb commented on code in PR #6355: URL: https://github.com/apache/arrow-datafusion/pull/6355#discussion_r1194167491
########## datafusion/core/src/execution/context.rs: ########## @@ -1649,45 +1653,58 @@ impl SessionState { // table providers for all relations referenced in this query let mut relations = hashbrown::HashSet::with_capacity(10); - match statement { - DFStatement::Statement(s) => { - struct RelationVisitor<'a>(&'a mut hashbrown::HashSet<ObjectName>); + struct RelationVisitor<'a>(&'a mut hashbrown::HashSet<ObjectName>); + + impl<'a> RelationVisitor<'a> { Review Comment: this simply pulls the `RelationVisitor` up a level so it can be used for both `DFStatement::DescribeTableStmt` and `DFStatement::CopyTo` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org