-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ARROW-17814: [C++] Remove make_unique reimplementation #14204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Is it also possible to remove occurrences of using std::make_unique
and instead write std::make_unique
in full?
|
Thanks for the review! Please check it again. @pitrou |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I'll just wait for CI now. |
I rebased and fixed conflicts. |
Use std::make_unique instead.
I have done the same thing. Sorry for missing your commit. @pitrou |
Benchmark runs are scheduled for baseline = 0310add and contender = 4cb7b50. 4cb7b50 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
['Python', 'R'] benchmarks have high level of regressions. |
@wgtmac This breaks our lint: https://github.com/apache/arrow/actions/runs/3105831802/jobs/5031935208#step:5:866 --- /arrow/cpp/src/arrow/type.cc
+++ /arrow/cpp/src/arrow/type.cc (after clang format)
@@ -1723,8 +1723,7 @@
SchemaBuilder::SchemaBuilder(std::vector<std::shared_ptr<Field>> fields,
ConflictPolicy policy,
Field::MergeOptions field_merge_options) {
- impl_ = std::make_unique<Impl>(std::move(fields), nullptr, policy,
- field_merge_options);
+ impl_ = std::make_unique<Impl>(std::move(fields), nullptr, policy, field_merge_options);
}
SchemaBuilder::SchemaBuilder(const std::shared_ptr<Schema>& schema, ConflictPolicy policy,
... Could you fix this as a follow-up pull request? Or do you want me to fix this? |
Oops, I don't know how I missed that. @kou I'd be glad if you could do it :-) |
OK. I'll do it. |
This is a follow-up of #14204. Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Use std::make_unique instead. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
This is a follow-up of apache#14204. Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Use std::make_unique instead. Authored-by: Gang Wu <ustcwg@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
This is a follow-up of apache#14204. Authored-by: Sutou Kouhei <kou@clear-code.com> Signed-off-by: David Li <li.davidm96@gmail.com>
Use std::make_unique instead.