raulcd opened a new issue, #268:
URL: https://github.com/apache/arrow-cookbook/issues/268
There is currently an issue when running the cookbooks using the latest
arrow-cpp from our nightly builds:
```
[ 5%] Building CXX object CMakeFiles/basic_arrow.dir/basic_arrow.cc.o
/home/runner/work/arrow-cookbook/arrow-cookbook/cpp/code/basic_arrow.cc: In
member function 'arrow::enable_if_number<T, arrow::Status>
TableSummation::Visit(const ArrayType&)':
/home/runner/work/arrow-cookbook/arrow-cookbook/cpp/code/basic_arrow.cc:90:23:
error: 'optional' is not a member of 'arrow::util'; did you mean
'std::optional'?
90 | for (arrow::util::optional<typename T::c_type> value : array) {
| ^~~~~~~~
In file included from
/usr/share/miniconda/envs/cookbook-cpp-dev/x86_64-conda-linux-gnu/include/c++/10.4.0/bits/node_handle.h:39,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/x86_64-conda-linux-gnu/include/c++/10.4.0/bits/hashtable.h:38,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/x86_64-conda-linux-gnu/include/c++/10.4.0/unordered_map:46,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/x86_64-conda-linux-gnu/include/c++/10.4.0/functional:61,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/x86_64-conda-linux-gnu/include/c++/10.4.0/pstl/glue_algorithm_defs.h:13,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/x86_64-conda-linux-gnu/include/c++/10.4.0/algorithm:74,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/include/arrow/util/endian.h:55,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/include/arrow/type.h:34,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/include/arrow/array/data.h:28,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/include/arrow/array/array_base.h:26,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/include/arrow/array.h:37,
from
/usr/share/miniconda/envs/cookbook-cpp-dev/include/arrow/api.h:22,
from
/home/runner/work/arrow-cookbook/arrow-cookbook/cpp/code/basic_arrow.cc:18:
/usr/share/miniconda/envs/cookbook-cpp-dev/x86_64-conda-linux-gnu/include/c++/10.4.0/optional:60:11:
note: 'std::optional' declared here
60 | class optional;
```
The issue seems to be related to the changes around C++ 17 and using
`arrow::util::optional` vs `std::optional`.
As we still don't have implemented the ability of having different versions
of cookbooks using different versions of Arrow (stable and dev) we probably
should fix them once the new Arrow 10.0.0 version is released.
The failure can be seen on CI on my fork here:
https://github.com/raulcd/arrow-cookbook/actions/runs/3281260557/jobs/5403045034
--
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]