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

[GitHub] [arrow] pitrou commented on a diff in pull request #35464: GH-35125: [C++][Acero] Add a self-defined io-executor in QueryOptions

pitrou commented on code in PR #35464:
URL: https://github.com/apache/arrow/pull/35464#discussion_r1188883409


##########
cpp/src/arrow/acero/query_context.cc:
##########
@@ -23,10 +23,17 @@ namespace arrow {
 using arrow::internal::CpuInfo;
 namespace acero {
 
+io::IOContext getIoContext(QueryOptions& opts, ExecContext& exec_context) {

Review Comment:
   Several things:
   1) Please make this `static` or put this into the anonymous namespace, to minimize the exported symbols 
   2) Please avoid non-const references: you can pass `const QueryOptions&` and `const ExecContext&`
   3) Naming should be CamelCase
   



-- 
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