-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-47787: [C++][FlightRPC] ODBC msi Windows installer
#48054
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -346,6 +346,7 @@ jobs: | |||||
| ARROW_BUILD_TYPE: release | ||||||
| ARROW_DEPENDENCY_SOURCE: VCPKG | ||||||
| ARROW_FLIGHT_SQL_ODBC: ON | ||||||
| ARROW_FLIGHT_SQL_ODBC_INSTALLER: ON | ||||||
| ARROW_SIMD_LEVEL: AVX2 | ||||||
| CMAKE_GENERATOR: Ninja | ||||||
| CMAKE_INSTALL_PREFIX: /usr | ||||||
|
|
@@ -433,7 +434,24 @@ jobs: | |||||
| # GH-48269 TODO: Enable Flight & Flight SQL testing in MSVC CI | ||||||
| # GH-48547 TODO: enable ODBC tests after GH-48270 and GH-48269 are resolved. | ||||||
|
|
||||||
| # GH-47787 TODO: Build ODBC installer | ||||||
| - name: Install WiX Toolset | ||||||
| shell: pwsh | ||||||
| run: | | ||||||
| Invoke-WebRequest -Uri https://github.com/wixtoolset/wix/releases/download/v6.0.0/wix-cli-x64.msi -OutFile wix-cli-x64.msi | ||||||
| Start-Process -FilePath wix-cli-x64.msi -ArgumentList '/quiet', 'Include_freethreaded=1' -Wait | ||||||
| echo "C:\Program Files\WiX Toolset v6.0\bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||||||
| - name: Build MSI ODBC installer | ||||||
| shell: pwsh | ||||||
| run: | | ||||||
| # Verify WiX version | ||||||
| wix --version | ||||||
| cd "${{ github.workspace }}\build\cpp" | ||||||
| cpack | ||||||
| - name: Upload the artifacts to the job | ||||||
| uses: actions/upload-artifact@v6 | ||||||
| with: | ||||||
| name: flight-sql-odbc-msi-installer | ||||||
| path: ${{ github.workspace }}\build\cpp\Apache Arrow Flight SQL ODBC-1.0.0-win64.msi | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we simplify this?
Suggested change
|
||||||
|
|
||||||
| report-extra-cpp: | ||||||
| if: github.event_name == 'schedule' && always() | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,3 +107,6 @@ java/.mvn/.develocity/ | |
| # rat | ||
| filtered_rat.txt | ||
| rat.txt | ||
|
|
||
| # for ODBC DLL | ||
| *.rc | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,8 +19,6 @@ | |
| # GH-44792: Arrow will switch to C++ 20 | ||
| set(CMAKE_CXX_STANDARD 20) | ||
|
|
||
| add_custom_target(arrow_flight_sql_odbc) | ||
|
|
||
| if(WIN32) | ||
| if(MSVC_VERSION GREATER_EQUAL 1900) | ||
| set(ODBCINST legacy_stdio_definitions odbccp32 shlwapi) | ||
|
|
@@ -38,10 +36,28 @@ add_subdirectory(tests) | |
|
|
||
| arrow_install_all_headers("arrow/flight/sql/odbc") | ||
|
|
||
| # ODBC Release information | ||
| set(ODBC_PACKAGE_VERSION_MAJOR "1") | ||
| set(ODBC_PACKAGE_VERSION_MINOR "0") | ||
| set(ODBC_PACKAGE_VERSION_PATCH "0") | ||
|
Comment on lines
+40
to
+42
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use the same version as Apache Arrow C++? |
||
| set(ODBC_PACKAGE_NAME "Apache Arrow Flight SQL ODBC") | ||
| set(ODBC_PACKAGE_VENDOR "Apache Arrow") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you use "Apache Software Foundation"? |
||
|
|
||
| set(ARROW_FLIGHT_SQL_ODBC_SRCS entry_points.cc odbc_api.cc) | ||
|
|
||
| if(WIN32) | ||
| list(APPEND ARROW_FLIGHT_SQL_ODBC_SRCS odbc.def) | ||
| set(VER_FILEVERSION | ||
| "${ODBC_PACKAGE_VERSION_MAJOR},${ODBC_PACKAGE_VERSION_MINOR},${ODBC_PACKAGE_VERSION_PATCH},0" | ||
| ) | ||
| set(VER_FILEVERSION_STR | ||
| ${ODBC_PACKAGE_VERSION_MAJOR}.${ODBC_PACKAGE_VERSION_MINOR}.${ODBC_PACKAGE_VERSION_PATCH} | ||
| ) | ||
| set(VER_COMPANYNAME_STR ${ODBC_PACKAGE_VENDOR}) | ||
| set(VER_PRODUCTNAME_STR ${ODBC_PACKAGE_NAME}) | ||
|
|
||
| configure_file("install/windows/versioninfo.rc.in" "install/versioninfo.rc" @ONLY) | ||
|
|
||
| list(APPEND ARROW_FLIGHT_SQL_ODBC_SRCS odbc.def install/versioninfo.rc) | ||
| endif() | ||
|
|
||
| add_arrow_lib(arrow_flight_sql_odbc | ||
|
|
@@ -75,3 +91,73 @@ add_arrow_lib(arrow_flight_sql_odbc | |
| foreach(LIB_TARGET ${ARROW_FLIGHT_SQL_ODBC_LIBRARIES}) | ||
| target_compile_definitions(${LIB_TARGET} PRIVATE ARROW_FLIGHT_SQL_ODBC_EXPORTING) | ||
| endforeach() | ||
|
|
||
| # Construct ODBC Windows installer. Only Release installer is supported | ||
| if(ARROW_FLIGHT_SQL_ODBC_INSTALLER) | ||
|
|
||
| include(InstallRequiredSystemLibraries) | ||
|
|
||
| set(CPACK_RESOURCE_FILE_LICENSE | ||
| "${CMAKE_CURRENT_SOURCE_DIR}/../../../../../../LICENSE.txt") | ||
| # Tentative version 1.0.0 | ||
| set(CPACK_PACKAGE_VERSION_MAJOR ${ODBC_PACKAGE_VERSION_MAJOR}) | ||
| set(CPACK_PACKAGE_VERSION_MINOR ${ODBC_PACKAGE_VERSION_MINOR}) | ||
| set(CPACK_PACKAGE_VERSION_PATCH ${ODBC_PACKAGE_VERSION_PATCH}) | ||
|
|
||
| set(CPACK_PACKAGE_NAME ${ODBC_PACKAGE_NAME}) | ||
| set(CPACK_PACKAGE_VENDOR ${ODBC_PACKAGE_VENDOR}) | ||
| set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Apache Arrow Flight SQL ODBC Driver") | ||
| set(CPACK_PACKAGE_CONTACT "#GH-47787 TODO arrow maintainers") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need an e-mail address here? |
||
|
|
||
| # GH-47876 TODO: set up `arrow_flight_sql_odbc` component for macOS Installer | ||
| # GH-47877 TODO: set up `arrow_flight_sql_odbc` component for Linux Installer | ||
| if(WIN32) | ||
| # Install ODBC and its Arrow dependencies | ||
| install(PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS} | ||
| DESTINATION bin | ||
| COMPONENT arrow_flight_sql_odbc) | ||
| install(TARGETS arrow_shared | ||
| arrow_compute_shared | ||
| arrow_flight_shared | ||
| arrow_flight_sql_shared | ||
| arrow_flight_sql_odbc_shared | ||
| RUNTIME_DEPENDENCIES | ||
| PRE_EXCLUDE_REGEXES | ||
| "api-ms-.*" | ||
| "ext-ms-.*" | ||
| POST_EXCLUDE_REGEXES | ||
| ".*system32/.*\\.dll" | ||
| RUNTIME DESTINATION bin COMPONENT arrow_flight_sql_odbc) | ||
|
|
||
| set(CPACK_WIX_EXTRA_SOURCES | ||
| "${CMAKE_CURRENT_SOURCE_DIR}/install/windows/arrow-flight-sql-odbc.wxs") | ||
| set(CPACK_WIX_PATCH_FILE | ||
| "${CMAKE_CURRENT_SOURCE_DIR}/install/windows/arrow-flight-sql-odbc-patch.xml") | ||
|
|
||
| set(CPACK_WIX_UI_BANNER | ||
| "${CMAKE_CURRENT_SOURCE_DIR}/install/windows/arrow-wix-banner.bmp") | ||
| endif() | ||
|
|
||
| get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS) | ||
| set(CPACK_COMPONENTS_ALL "arrow_flight_sql_odbc") | ||
|
|
||
| if(WIN32) | ||
| # WiX msi installer on Windows | ||
| # CPack is compatible with WiX V.5 and V.6 | ||
| set(CPACK_GENERATOR "WIX") | ||
| set(CPACK_WIX_VERSION 4) | ||
|
|
||
| # Upgrade GUID is required to be unchanged for ODBC installer to upgrade | ||
| set(CPACK_WIX_UPGRADE_GUID "DBF27A18-F8BF-423F-9E3A-957414D52C4B") | ||
| set(CPACK_WIX_PRODUCT_GUID "279D087B-93B5-4DC3-BA69-BCF485022A26") | ||
| endif() | ||
| # GH-47876 TODO: create macOS Installer using cpack | ||
| # GH-47877 TODO: create Linux Installer using cpack | ||
|
|
||
| # Load CPack after all CPACK* variables are set | ||
| include(CPack) | ||
| cpack_add_component(arrow_flight_sql_odbc | ||
| DISPLAY_NAME "ODBC library" | ||
| DESCRIPTION "ODBC library bin, required to install" | ||
|
Comment on lines
+160
to
+161
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure whether this is used but do we need to include "Apache Arrow Flight SQL" or something in them? |
||
| REQUIRED) | ||
| endif() | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you add |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,63 @@ | ||||||||||||||||||||||||||||
| <!--- | ||||||||||||||||||||||||||||
| Licensed to the Apache Software Foundation (ASF) under one | ||||||||||||||||||||||||||||
| or more contributor license agreements. See the NOTICE file | ||||||||||||||||||||||||||||
| distributed with this work for additional information | ||||||||||||||||||||||||||||
| regarding copyright ownership. The ASF licenses this file | ||||||||||||||||||||||||||||
| to you under the Apache License, Version 2.0 (the | ||||||||||||||||||||||||||||
| "License"); you may not use this file except in compliance | ||||||||||||||||||||||||||||
| with the License. You may obtain a copy of the License at | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| http://www.apache.org/licenses/LICENSE-2.0 | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| Unless required by applicable law or agreed to in writing, | ||||||||||||||||||||||||||||
| software distributed under the License is distributed on an | ||||||||||||||||||||||||||||
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||||||||||||||||||||||||||||
| KIND, either express or implied. See the License for the | ||||||||||||||||||||||||||||
| specific language governing permissions and limitations | ||||||||||||||||||||||||||||
| under the License. | ||||||||||||||||||||||||||||
| --> | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ## Steps to Register the 64-bit Apache Arrow ODBC driver on Windows | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| After the build succeeds, the ODBC DLL will be located in | ||||||||||||||||||||||||||||
| `build\debug\Debug` for a debug build and `build\release\Release` for a release build. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| 1. Open Windows Power Shell as administrator. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| 2. Register your ODBC DLL: | ||||||||||||||||||||||||||||
| Need to replace <path\to\repo> with actual path to repository in the commands. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| i. `cd to repo.` | ||||||||||||||||||||||||||||
| ii. `cd <path\to\repo>` | ||||||||||||||||||||||||||||
| iii. Run script to register your ODBC DLL as Apache Arrow Flight SQL ODBC Driver | ||||||||||||||||||||||||||||
| `.\cpp\src\arrow\flight\sql\odbc\tests\install_odbc.cmd <path\to\repo>\cpp\build\< release | debug >\< Release | Debug>\arrow_flight_sql_odbc.dll` | ||||||||||||||||||||||||||||
| Example command for reference: | ||||||||||||||||||||||||||||
| `.\cpp\src\arrow\flight\sql\odbc\tests\install_odbc.cmd C:\path\to\arrow\cpp\build\release\Release\arrow_flight_sql_odbc.dll` | ||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| If the registration is successful, then Apache Arrow Flight SQL ODBC Driver | ||||||||||||||||||||||||||||
| should show as an available ODBC driver in the x64 ODBC Driver Manager. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ## Steps to Generate Windows Installer | ||||||||||||||||||||||||||||
| 1. Install WiX toolset v6 from [GitHub](https://github.com/wixtoolset/wix/releases/). | ||||||||||||||||||||||||||||
| 2. Build with `ARROW_FLIGHT_SQL_ODBC=ON` and `ARROW_FLIGHT_SQL_ODBC_INSTALLER=ON`. | ||||||||||||||||||||||||||||
| 3. `cd` to `build` folder. | ||||||||||||||||||||||||||||
| 4. Run `cpack`. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| If the generation is successful, you will find `Apache Arrow Flight SQL ODBC-<version>-win64.msi` generated under the `build` folder. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| ## Steps to Enable Logging | ||||||||||||||||||||||||||||
| Arrow Flight SQL ODBC driver uses Arrow's internal logging framework. By default, the log messages are printed to the terminal. | ||||||||||||||||||||||||||||
| 1. Set environment variable `ARROW_ODBC_LOG_LEVEL` to any of the following valid values to enable logging. If `ARROW_ODBC_LOG_LEVEL` is set to a non-empty string that does not match any of the following values, `DEBUG` level is used by default. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| The characters are case-insensitive. | ||||||||||||||||||||||||||||
| - TRACE | ||||||||||||||||||||||||||||
| - DEBUG | ||||||||||||||||||||||||||||
| - INFO | ||||||||||||||||||||||||||||
| - WARNING | ||||||||||||||||||||||||||||
| - ERROR | ||||||||||||||||||||||||||||
| - FATAL | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| The Windows ODBC driver currently does not support writing log files. `ARROW_USE_GLOG` is required to write log files, and `ARROW_USE_GLOG` is disabled on Windows platform since plasma using `glog` is not fully tested on windows. | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| Note: GH-47670 running more than 1 tests with logging enabled is not fully supported. | ||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <CPackWiXPatch> | ||
| <CPackWiXFragment Id="#PRODUCTFEATURE"> | ||
| <ComponentRef Id="ODBCRegistryEntries"/> | ||
| </CPackWiXFragment> | ||
| </CPackWiXPatch> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| <?xml version="1.0" encoding="windows-1252"?> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is |
||
|
|
||
| <!-- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| <Fragment> | ||
| <DirectoryRef Id="TARGETDIR"> | ||
| <Component Id="ODBCRegistryEntries" Guid="C348B9F7-5E8D-415D-A001-D92F2D4EA013"> | ||
| <RegistryValue Root='HKLM' Key='Software\ODBC\ODBCINST.INI\ODBC Drivers' Name='Apache Arrow Flight SQL ODBC Driver' Type='string' Value='Installed'/> | ||
|
|
||
| <RegistryKey Root="HKLM" | ||
| Key="Software\ODBC\ODBCINST.INI\Apache Arrow Flight SQL ODBC Driver"> | ||
| <!-- CM_FP_arrow_flight_sql_odbc.bin.arrow_flight_sql_odbc.dll is a generated variable value from build\_CPack_Packages\win64\WIX\files.wxs --> | ||
| <RegistryValue Type="string" Name="DriverODBCVer" Value="03.00"/> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this the version of our Flight SQL ODBC version? Can we use the same version as Apache Arrow C++? |
||
| <RegistryValue Type="string" Name="Driver" Value="[#CM_FP_arrow_flight_sql_odbc.bin.arrow_flight_sql_odbc.dll]"/> | ||
| <RegistryValue Type="string" Name="Setup" Value="[#CM_FP_arrow_flight_sql_odbc.bin.arrow_flight_sql_odbc.dll]"/> | ||
| <RegistryValue Type="integer" Name="UsageCount" Value="1"/> | ||
| </RegistryKey> | ||
| </Component> | ||
| </DirectoryRef> | ||
| </Fragment> | ||
| </Wix> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is an image of Arrow banner |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| // Licensed to the Apache Software Foundation (ASF) under one | ||
| // or more contributor license agreements. See the NOTICE file | ||
| // distributed with this work for additional information | ||
| // regarding copyright ownership. The ASF licenses this file | ||
| // to you under the Apache License, Version 2.0 (the | ||
| // "License"); you may not use this file except in compliance | ||
| // with the License. You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, | ||
| // software distributed under the License is distributed on an | ||
| // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
| // KIND, either express or implied. See the License for the | ||
| // specific language governing permissions and limitations | ||
| // under the License. | ||
|
|
||
| #define VER_FILEVERSION @VER_FILEVERSION@ | ||
| #define VER_FILEVERSION_STR "@VER_FILEVERSION_STR@\0" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is |
||
|
|
||
| #define VER_PRODUCTVERSION @VER_FILEVERSION@ | ||
| #define VER_PRODUCTVERSION_STR "@VER_FILEVERSION_STR@\0" | ||
|
|
||
| #define VER_COMPANYNAME_STR "@VER_COMPANYNAME_STR@\0" | ||
| #define VER_PRODUCTNAME_STR "@VER_PRODUCTNAME_STR@\0" | ||
|
|
||
| 1 VERSIONINFO | ||
| FILEVERSION VER_FILEVERSION | ||
| PRODUCTVERSION VER_PRODUCTVERSION | ||
| BEGIN | ||
| BLOCK "StringFileInfo" | ||
| BEGIN | ||
| BLOCK "040904E4" | ||
| BEGIN | ||
| VALUE "CompanyName", VER_COMPANYNAME_STR | ||
| VALUE "FileVersion", VER_FILEVERSION_STR | ||
| VALUE "ProductName", VER_PRODUCTNAME_STR | ||
| VALUE "ProductVersion", VER_PRODUCTVERSION_STR | ||
| END | ||
| END | ||
|
|
||
| BLOCK "VarFileInfo" | ||
| BEGIN | ||
| /* The following line should only be modified for localized versions. */ | ||
| /* It consists of any number of WORD,WORD pairs, with each pair */ | ||
| /* describing a language,codepage combination supported by the file. */ | ||
| /* */ | ||
| /* For example, a file might have values "0x409,1252" indicating that it */ | ||
| /* supports English language (0x409) in the Windows ANSI codepage (1252). */ | ||
|
|
||
| VALUE "Translation", 0x409, 1252 | ||
|
|
||
| END | ||
| END | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we simplify this?