MashrafeeAryan commented on code in PR #55251:
URL: https://github.com/apache/arrow/pull/55251#discussion_r4400976165
##########
cpp/src/parquet/arrow/writer.cc:
##########
@@ -135,6 +135,42 @@ Status GetSchemaMetadata(const ::arrow::Schema& schema,
::arrow::MemoryPool* poo
return Status::OK();
}
+// Check that all chunks contain supported fixed-size lists with no missing
values
+bool CanWriteFixedSizeLists(const std::vector<std::shared_ptr<Array>>& arrays)
{
+ if (arrays.empty() || arrays.front()->type_id() !=
::arrow::Type::FIXED_SIZE_LIST) {
+ return false;
+ }
+ const auto& type =
+ checked_cast<const ::arrow::FixedSizeListType&>(*arrays.front()->type());
+ if (type.list_size() <= 0) {
+ return false;
Review Comment:
check if it's legal
--
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]