MashrafeeAryan commented on code in PR #55251:
URL: https://github.com/apache/arrow/pull/55251#discussion_r4675107379
##########
cpp/src/parquet/arrow/writer.cc:
##########
@@ -165,6 +201,30 @@ class ArrowColumnWriterV2 {
} else {
PARQUET_CATCH_NOT_OK(column_writer = row_group_writer_->NextColumn());
}
+ if (!fixed_size_lists_.empty()) {
+ if (column_writer->properties()->content_defined_chunking_enabled()) {
+ for (const auto& array : fixed_size_lists_) {
+ ARROW_ASSIGN_OR_RAISE(auto builder,
+ MultipathLevelBuilder::Make(*array,
is_nullable_));
+ level_builders_.emplace_back(std::move(builder));
+ }
+ fixed_size_lists_.clear();
+ } else {
+ const auto& type = checked_cast<const ::arrow::FixedSizeListType&>(
+ *fixed_size_lists_.front()->type());
+ auto fast_ctx = *ctx;
+ fast_ctx.fixed_size_list_size = type.list_size();
Review Comment:
I moved the list size out of `ArrowWriteContext`. The
`ArrowColumnWriterV2::Write` now passes it directly to
`WriteArrowFixedSizeList`.
--
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]