mapleFU commented on code in PR #37101:
URL: https://github.com/apache/arrow/pull/37101#discussion_r1289750967


##########
cpp/src/arrow/type.cc:
##########
@@ -779,22 +778,20 @@ std::string UnionType::ToString() const {
   return s.str();
 }
 
-SparseUnionType::SparseUnionType(std::vector<std::shared_ptr<Field>> fields,
-                                 std::vector<int8_t> type_codes)
+SparseUnionType::SparseUnionType(FieldVector fields, std::vector<int8_t> 
type_codes)
     : UnionType(fields, type_codes, Type::SPARSE_UNION) {}
 
-Result<std::shared_ptr<DataType>> SparseUnionType::Make(
-    std::vector<std::shared_ptr<Field>> fields, std::vector<int8_t> 
type_codes) {
+Result<std::shared_ptr<DataType>> SparseUnionType::Make(FieldVector fields,
+                                                        std::vector<int8_t> 
type_codes) {
   RETURN_NOT_OK(ValidateParameters(fields, type_codes, UnionMode::SPARSE));
   return std::make_shared<SparseUnionType>(fields, type_codes);

Review Comment:
   Yes this patch LGTM.



-- 
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]

Reply via email to