alamb commented on code in PR #6313:
URL: https://github.com/apache/arrow-datafusion/pull/6313#discussion_r1189244015
##########
datafusion/core/src/execution/context.rs:
##########
@@ -450,6 +457,36 @@ impl SessionContext {
self.read_batch(record_batch)
}
+ // Execute a COPY TO statement, returning the number of rows
Review Comment:
Note that this is the mechanism as used by `CREATE TABLE AS SELECT` (aka
LogicalPlan::CreateMemTable`). It is different than the mechanism used by
`INSERT INTO ... ` (added in
https://github.com/apache/arrow-datafusion/pull/5520 by @metesynnada ) that
uses an ExecutionPlan.
The difference bothers me, but I can see the benefits of both approaches
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]