Skip to content

Broken Backwards compatibility around bytes_view #14983

@david-engelmann

Description

@david-engelmann

Describe the bug, including details regarding any error messages, version, and platform.

Here is the full command that failed with all the included directories

/opt/conda/envs/turbodbc-dev/bin/x86_64-conda-linux-gnu-c++ -Dturbodbc_arrow_support_EXPORTS -I/src/cpp/turbodbc_arrow/Library -I/src/cpp/turbodbc_arrow/../cpp_odbc/Library -I/src/cpp/turbodbc_arrow/../turbodbc/Library -isystem /opt/conda/envs/turbodbc-dev/include/python3.8 -isystem /opt/conda/envs/turbodbc-dev/lib/python3.8/site-packages/numpy/core/include -isystem /opt/conda/envs/turbodbc-dev/lib/python3.8/site-packages/pyarrow/include -isystem /src/pybind11/include -fvisibility-inlines-hidden -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /opt/conda/envs/turbodbc-dev/include -Wall -Wextra -g -O0 -pedantic -fprofile-arcs -ftest-coverage -fPIC -fvisibility=hidden   -std=c++11 -MD -MT cpp/turbodbc_arrow/Library/CMakeFiles/turbodbc_arrow_support.dir/src/python_bindings.cpp.o -MF cpp/turbodbc_arrow/Library/CMakeFiles/turbodbc_arrow_support.dir/src/python_bindings.cpp.o.d -o cpp/turbodbc_arrow/Library/CMakeFiles/turbodbc_arrow_support.dir/src/python_bindings.cpp.o -c /src/cpp/turbodbc_arrow/Library/src/python_bindings.cpp
/opt/conda/envs/turbodbc-dev/include/arrow/util/bytes_view.h:26:25: error: 'basic_string_view' in namespace 'std' does not name a template type
using bytes_view = std::basic_string_view<uint8_t>;

It also states that this is only defined for C++17 and on. Currently, the turbodbc build with pyarrow10 version is failing because of this. The default build behavior of turbodbc uses the following commands add_definitions("-std=c++11") and extra_compile_args.append("--std=c++11")

I believe this is the final blocker for bumping turbodbc requirements to greater than 9.

Component(s)

Python

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions