[ https://issues.apache.org/jira/browse/ARROW-17764?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kouhei Sutou resolved ARROW-17764. ---------------------------------- Fix Version/s: 10.0.0 Resolution: Fixed Issue resolved by pull request 14161 [https://github.com/apache/arrow/pull/14161] > [CI][C++] "#include <optional>" is missing > ------------------------------------------ > > Key: ARROW-17764 > URL: https://issues.apache.org/jira/browse/ARROW-17764 > Project: Apache Arrow > Issue Type: Improvement > Components: C++, Continuous Integration > Reporter: Kouhei Sutou > Assignee: Kouhei Sutou > Priority: Major > Labels: pull-request-available > Fix For: 10.0.0 > > Time Spent: 1h > Remaining Estimate: 0h > > https://github.com/ursacomputing/crossbow/actions/runs/3073442125/jobs/4965573117#step:5:8420 > {noformat} > FAILED: > src/arrow/flight/sql/CMakeFiles/arrow_flight_sql_objlib.dir/sql_info_internal.cc.o > > /usr/bin/c++ -DARROW_FLIGHT_SQL_EXPORTING -DARROW_HAVE_RUNTIME_AVX2 > -DARROW_HAVE_RUNTIME_AVX512 -DARROW_HAVE_RUNTIME_BMI2 > -DARROW_HAVE_RUNTIME_SSE4_2 -DARROW_HAVE_SSE4_2 -DARROW_HDFS > -DARROW_WITH_BROTLI -DARROW_WITH_BZ2 -DARROW_WITH_LZ4 -DARROW_WITH_RE2 > -DARROW_WITH_SNAPPY -DARROW_WITH_TIMING_TESTS -DARROW_WITH_UTF8PROC > -DARROW_WITH_ZLIB -DARROW_WITH_ZSTD > -DGRPC_NAMESPACE_FOR_TLS_CREDENTIALS_OPTIONS=grpc::experimental > -DGRPC_USE_CERTIFICATE_VERIFIER -DGRPC_USE_TLS_CHANNEL_CREDENTIALS_OPTIONS > -DURI_STATIC_BUILD -DUTF8PROC_STATIC -I/tmp/arrow-HEAD.YQq4y/cpp-build/src > -I/arrow/cpp/src -I/arrow/cpp/src/generated -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/protobuf_ep-install/include -isystem > /arrow/cpp/thirdparty/flatbuffers/include -isystem > /arrow/cpp/thirdparty/hadoop/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/boost_ep-prefix/src/boost_ep -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/brotli_ep/src/brotli_ep-install/include > -isystem /tmp/arrow-HEAD.YQq4y/cpp-build/orc_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/utf8proc_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/re2_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/rapidjson_ep/src/rapidjson_ep-install/include > -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/xsimd_ep/src/xsimd_ep-install/include > -isystem /tmp/arrow-HEAD.YQq4y/cpp-build/jemalloc_ep-prefix/src -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/grpc_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/absl_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/cares_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/bzip2_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/lz4_ep-install/include -isystem > /tmp/arrow-HEAD.YQq4y/cpp-build/snappy_ep/src/snappy_ep-install/include > -isystem /tmp/arrow-HEAD.YQq4y/cpp-build/zstd_ep-install/include > -Wno-noexcept-type -fdiagnostics-color=always -O2 -DNDEBUG -ftree-vectorize > -Wall -fno-semantic-interposition -msse4.2 -DNDEBUG -fPIC -std=c++17 -MD > -MT > src/arrow/flight/sql/CMakeFiles/arrow_flight_sql_objlib.dir/sql_info_internal.cc.o > -MF > src/arrow/flight/sql/CMakeFiles/arrow_flight_sql_objlib.dir/sql_info_internal.cc.o.d > -o > src/arrow/flight/sql/CMakeFiles/arrow_flight_sql_objlib.dir/sql_info_internal.cc.o > -c /arrow/cpp/src/arrow/flight/sql/sql_info_internal.cc > In file included from /arrow/cpp/src/arrow/flight/sql/sql_info_internal.h:20, > from /arrow/cpp/src/arrow/flight/sql/sql_info_internal.cc:18: > /arrow/cpp/src/arrow/flight/sql/types.h:899:8: error: 'optional' in namespace > 'std' does not name a template type > 899 | std::optional<std::string> catalog; > | ^~~~~~~~ > /arrow/cpp/src/arrow/flight/sql/types.h:29:1: note: 'std::optional' is > defined in header '<optional>'; did you forget to '#include <optional>'? > 28 | #include "arrow/type_fwd.h" > +++ |+#include <optional> > 29 | > /arrow/cpp/src/arrow/flight/sql/types.h:901:8: error: 'optional' in namespace > 'std' does not name a template type > 901 | std::optional<std::string> db_schema; > | ^~~~~~~~ > /arrow/cpp/src/arrow/flight/sql/types.h:901:3: note: 'std::optional' is > defined in header '<optional>'; did you forget to '#include <optional>'? > 901 | std::optional<std::string> db_schema; > | ^~~ > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)