You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/05 16:46:11 UTC
[GitHub] [arrow] lidavidm commented on a diff in pull request #12789: ARROW-16128: [C++][FlightRPC] Fix Flight SQL static build on Windows
lidavidm commented on code in PR #12789:
URL: https://github.com/apache/arrow/pull/12789#discussion_r843045927
##########
docs/source/developers/cpp/windows.rst:
##########
@@ -362,6 +362,20 @@ suppress dllimport/dllexport marking of symbols. Projects that statically link
against Arrow on Windows additionally need this definition. The Unix builds do
not use the macro.
+In addition if using ``-DARROW_FLIGHT=ON``, ``ARROW_FLIGHT_STATIC`` needs to
+be defined.
+
+.. code-block:: cmake
+
+ project(MyExample)
+
+ find_package(Arrow REQUIRED)
+
+ add_executable(my_example my_example.cc)
+ target_link_libraries(my_example PRIVATE arrow_static arrow_flight_static)
+
+ add_compile_definitions(ARROW_STATIC ARROW_FLIGHT_STATIC)
Review Comment:
It's more idiomatic to use `target_compile_definitions` right?
##########
cpp/src/arrow/flight/sql/client.cc:
##########
@@ -369,8 +369,9 @@ arrow::Result<int64_t> PreparedStatement::ExecuteUpdate() {
} else {
const std::shared_ptr<Schema> schema = arrow::schema({});
ARROW_RETURN_NOT_OK(client_->DoPut(options_, descriptor, schema, &writer, &reader));
+ const auto& columns = std::vector<std::shared_ptr<Array>>{};
Review Comment:
nit (assuming `arrow/type_fwd.h` is included):
```suggestion
ArrayVector columns;
```
--
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