You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "wgtmac (via GitHub)" <gi...@apache.org> on 2025/02/08 16:57:30 UTC
[PR] WIP: explore nanoarrow and sparrow [iceberg-cpp]
wgtmac opened a new pull request, #44:
URL: https://github.com/apache/iceberg-cpp/pull/44
Closes #33
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and dependencies of nanoarrow & sparrow [iceberg-cpp]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2736927600
Agreed. The point of this PR is to demonstrate that we can use the Arrow C data interface as the main API for file reader and writer and internally we can process the data with the help of nanoarrow/sparrow. This is an independent work. In the meanwhile, I'll try to figure out the minimal set of interfaces that we need and create a PR for PoC later this week or next week.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and nanoarrow dependency [iceberg-cpp]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2742728263
Thank you, @Fokko!
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and dependencies of nanoarrow & sparrow [iceberg-cpp]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2738331312
Sounds good to me
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and nanoarrow dependency [iceberg-cpp]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko merged PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and nanoarrow dependency [iceberg-cpp]
Posted by "Fokko (via GitHub)" <gi...@apache.org>.
Fokko commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2742715984
This looks good to me, thanks @wgtmac for working on this, and thanks @lidavidm and @zhjwpku for the review 👍
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and dependencies of nanoarrow & sparrow [iceberg-cpp]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2736388961
IMO, it's going to be hard/pointless to choose one until we actually write code that needs it. I hope we can get the ball rolling sooner rather than later on actual implementation/binding work
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] WIP: explore nanoarrow and sparrow [iceberg-cpp]
Posted by "JohanMabille (via GitHub)" <gi...@apache.org>.
JohanMabille commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2647526672
Hi there,
Thanks for the test and report! We get same issues when trying to build and use sparrow in WASM and are pushing fixes for that (more specifically, the target_compile_definitions that are missing). I'll take the opportunity to fix the other issues you faced, we will release a new version right after.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and nanoarrow dependency [iceberg-cpp]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2738966373
@Xuanwo @Fokko Could you help review this?
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and dependencies of nanoarrow & sparrow [iceberg-cpp]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2736381366
@lidavidm Yes, this is for the nanoarrow and sparrow comparison and finally one of them will be only used internally by the `libiceberg`. If `libiceberg` is pluggable enough, I think we can also remove the `libiceberg-arrow` and thus the dependency of arrow.
Let me fix the CI first. Then I think we need reach a consensus to choose one.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and nanoarrow dependency [iceberg-cpp]
Posted by "zhjwpku (via GitHub)" <gi...@apache.org>.
zhjwpku commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2738871141
Agreed, nanoarrow sounds good to me.
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] Add Arrow C Data Interface and dependencies of nanoarrow & sparrow [iceberg-cpp]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2737105909
> 1/4 Test #1: arrow_unittest ...................Exit code 0xc0000135
***Exception: 0.01 sec
I have run into an error: https://github.com/apache/iceberg-cpp/actions/runs/13943870527/job/39026477819. It seems that I can get rid of it by removing the `sparrow` dependency. So I'm inclined to use `nanoarrow` for now and revisit this issue in the future.
I will polish this PR to depend on only `nanoarrow`. As the next step, I can add a conversion between `ArrowSchema` and the Iceberg schema. WDYT? @lidavidm @zhjwpku @Fokko
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org
Re: [PR] WIP: explore nanoarrow and sparrow [iceberg-cpp]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on PR #44:
URL: https://github.com/apache/iceberg-cpp/pull/44#issuecomment-2646093255
I have managed to add `sparrow` as a vendored thirdparty dependency to `libiceberg`. However, there are still two issues that break CI:
1. It cannot compile on Windows due to `int128_t` is not supported by MSVC: https://github.com/apache/iceberg-cpp/actions/runs/13217571682/job/36898649736?pr=44.
```
D:\a\iceberg-cpp\iceberg-cpp\build\_deps\sparrow-src\include\sparrow\details\3rdparty\large_integers\int128_t.hpp(92,23): error C2065: 'int128_t': undeclared identifier [D:\a\iceberg-cpp\iceberg-cpp\build\_deps\sparrow-build\sparrow.vcxproj]
(compiling source file '../sparrow-src/src/array_factory.cpp')
```
2. It cannot compile on MacOS with `AppleClang 15.0.0.15000309` since Sparrow README recommends `Apple Clang 16 or higher`: https://github.com/apache/iceberg-cpp/actions/runs/13217571682/job/36898649906?pr=44.
```
[ 0%] Building CXX object _deps/sparrow-build/CMakeFiles/sparrow.dir/src/array_factory.cpp.o
In file included from /Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/src/array_factory.cpp:17:
In file included from /Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/include/sparrow/layout/decimal_array.hpp:24:
/Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/include/sparrow/buffer/u8_buffer.hpp:114:19: error: out-of-line definition of 'u8_buffer<T>' does not match any declaration in 'u8_buffer<T>'
u8_buffer<T>::u8_buffer(R&& range)
^~~~~~~~~
In file included from /Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/src/array_factory.cpp:19:
In file included from /Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/include/sparrow/layout/fixed_width_binary_array.hpp:17:
/Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/include/sparrow/layout/fixed_width_binary_layout/fixed_width_binary_array.hpp:336:83: error: no member named 'join' in namespace 'std::ranges::views'
auto data_buffer = u8_buffer<values_inner_value_type>(std::ranges::views::join(values));
~~~~~~~~~~~~~~~~~~~~^
/Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/include/sparrow/layout/fixed_width_binary_layout/fixed_width_binary_array.hpp:481:70: error: no member named 'join' in namespace 'std::ranges::views'
const auto joined_repeated_value_range = std::ranges::views::join(my_repeat_view);
~~~~~~~~~~~~~~~~~~~~^
In file included from /Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/src/array_factory.cpp:27:
/Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/include/sparrow/layout/variable_size_binary_layout/variable_size_binary_array.hpp:455:83: error: no member named 'join' in namespace 'std::ranges::views'
auto data_buffer = u8_buffer<values_inner_value_type>(std::ranges::views::join(values));
~~~~~~~~~~~~~~~~~~~~^
/Users/runner/work/iceberg-cpp/iceberg-cpp/build/_deps/sparrow-src/include/sparrow/layout/variable_size_binary_layout/variable_size_binary_array.hpp:683:70: error: no member named 'join' in namespace 'std::ranges::views'
const auto joined_repeated_value_range = std::ranges::views::join(my_repeat_view);
~~~~~~~~~~~~~~~~~~~~^
5 errors generated.
```
There are some other minor issues:
1. It should use `PREPEND` not `APPEND` at this line: https://github.com/man-group/sparrow/blob/532bf486243fc396f7a9392820fa7a77071782ad/CMakeLists.txt#L50. Otherwise I have to add `list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_BINARY_DIR}/_deps/sparrow-src/cmake)` on my side when using `FetchContent` to vendor sparrow to avoid error `include could not find requested file: sanitizers`.
2. It would be good to add a namespace `sparrow::` when installing the exported config file at https://github.com/man-group/sparrow/blob/532bf486243fc396f7a9392820fa7a77071782ad/CMakeLists.txt#L354.
These are not blocking issues at the moment. I need more time to get familiar with its API and best practice. Just want to report what I have found so far. @JohanMabille @Alex-PLACET @pitrou
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org