felipecrv commented on code in PR #40807:
URL: https://github.com/apache/arrow/pull/40807#discussion_r1583834010
##########
cpp/src/arrow/record_batch.cc:
##########
@@ -664,7 +667,9 @@ Status RecordBatch::ValidateFull() const {
return ValidateBatch(*this, /*full_validation=*/true);
}
-const std::shared_ptr<Device::SyncEvent>& RecordBatch::GetSyncEvent() const {
return nullptr; }
+const std::shared_ptr<Device::SyncEvent>& RecordBatch::GetSyncEvent() const {
+ return nullptr;
Review Comment:
Bugs would manifest in usage like this:
```cpp
auto& sync_event = batch.GetSyncEvent();
// pass the & to something that receives a `shared_ptr<...>&`...
```
--
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]