ozankabak commented on code in PR #6313:
URL: https://github.com/apache/arrow-datafusion/pull/6313#discussion_r1190432381
##########
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:
I think we have something you may be able to leverage, check [this
PR](https://github.com/synnada-ai/arrow-datafusion/pull/89) out. It extends the
ExecutionPlan approach to writing files, I think you can leverage that work
here too. With that change, `COPY TO` and `INSERT INTO` will use the same
`ExecutionPlan`-based approach -- the only difference would be related to
appending vs overwriting.
--
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]