llama90 commented on code in PR #43192:
URL: https://github.com/apache/arrow/pull/43192#discussion_r1670294550
##########
cpp/src/arrow/compute/kernels/scalar_cast_temporal.cc:
##########
@@ -532,9 +535,12 @@ std::shared_ptr<CastFunction> GetDate32Cast() {
std::shared_ptr<CastFunction> GetDate64Cast() {
auto func = std::make_shared<CastFunction>("cast_date64", Type::DATE64);
- auto out_ty = date64();
+ const auto out_ty = date64();
Review Comment:
missing `&`.
```suggestion
const auto& out_ty = date64();
```
--
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]