jsjtxietian commented on code in PR #37101:
URL: https://github.com/apache/arrow/pull/37101#discussion_r1289726290
##########
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:
@mapleFU I think yes and type_codes can be moved too, but it's not related
to this issue?
--
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]