Skip to content

Conversation

@alinaliBQ
Copy link
Contributor

@alinaliBQ alinaliBQ commented Nov 5, 2025

Rationale for this change

Enable ODBC in MSVC CI and disable ODBC in MinGW CI since MSVC is the main platform for ODBC.

What changes are included in this PR?

  • Enable ODBC in MSVC C++ CI .github/workflows/cpp_windows.yml
  • Remove boost-optional as it blocks ODBC from building in MSVC

Are these changes tested?

Tested in CI

Are there any user-facing changes?

N/A

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

⚠️ GitHub issue #48019 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added the awaiting review Awaiting review label Nov 5, 2025
@alinaliBQ alinaliBQ changed the title GH-48019 : [C++][FlightRPC] WIP: Enable ODBC in MSVC CI GH-48019 : [C++][FlightRPC] work-in-progress Enable ODBC in MSVC CI Nov 5, 2025
@alinaliBQ
Copy link
Contributor Author

Please note that I created this WIP PR to test the CI since Arrow's repo allows for longer runs

windows-mingw also has timeout of 2hr
* reason: gtest can't be used with C++17. Arrow project doesn't support C++ 17 yet.
* Add back `CMAKE_CXX_STANDARD: "17"`
Borrowed from the Glib workflow
`ARROW_BOOST_USE_SHARED` is restored to `OFF`, which according to Windows doc should help with the debug build now.

Retore value of `ARROW_BUILD_BENCHMARKS`, though noting it is set to `OFF` in GLib MSVC workflow.
@alinaliBQ alinaliBQ force-pushed the gh-48019-build-odbc-msvc branch from 354f731 to 7349d67 Compare November 6, 2025 22:42
Getting
```
orc.lib(Exceptions.cc.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in unity_2_cxx.cxx.obj
orc.lib(Exceptions.cc.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MD_DynamicRelease' doesn't match value 'MDd_DynamicDebug' in unity_2_cxx.cxx.obj
```
when building with debug and presumably ARROW_ORC
Since we have a release build, can enable boost as shared.

With `ARROW_BOOST_USE_SHARED = OFF`, I am getting error
```
D:\a\arrow\arrow\build\cpp\vcpkg_installed\x64-windows\include\boost/filesystem/config.hpp(96): fatal error C1189: #error:  Must not define both BOOST_FILESYSTEM_DYN_LINK and BOOST_FILESYSTEM_STATIC_LINK
```

Also increased time limit, since 2 hours don't seem to be enough to finish the vcpkg build
Since we need to use link to boost dynamically, we need to remove the bundled boost library flag.

Add debug messages.
Addresses comment apache#40939 (comment)
Replace boost::optional with std::optional in ODBC codebase

apache#48084
Attempt to include Arrow headers before ODBC headers to avoid conflict with arrow/flight/sql/types.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant