Called to indicate that some resources backing this batch were not attached and will be cleaned up after the next GetNext() call. This means that the batch must be returned up the operator tree. Blocking operators must deep-copy any rows from this batch or preceding batches. This is a stronger version of MarkFlushResources(), because blocking operators are not allowed to accumulate batches with t
| 297 | /// are not allowed to accumulate batches with the 'needs_deep_copy' flag. |
| 298 | /// TODO: IMPALA-4179: always attach backing resources and remove this flag. |
| 299 | void MarkNeedsDeepCopy() { |
| 300 | MarkFlushResources(); // No more rows should be added to the batch. |
| 301 | needs_deep_copy_ = true; |
| 302 | } |
| 303 | |
| 304 | bool needs_deep_copy() { return needs_deep_copy_; } |
| 305 |
no outgoing calls