You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2023/05/15 19:15:39 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #6355: Add` COPY .. TO ..` syntax support

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-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org