diff --git a/src/iceberg/row/struct_like.h b/src/iceberg/row/struct_like.h index 77f84e233f..df7315d9bd 100644 --- a/src/iceberg/row/struct_like.h +++ b/src/iceberg/row/struct_like.h @@ -109,6 +109,12 @@ class ICEBERG_EXPORT StructLikeAccessor { std::span position_path, std::vector is_optional); + // Deep-path accessors capture this, so the object must keep a stable address. + StructLikeAccessor(const StructLikeAccessor&) = delete; + StructLikeAccessor& operator=(const StructLikeAccessor&) = delete; + StructLikeAccessor(StructLikeAccessor&&) = delete; + StructLikeAccessor& operator=(StructLikeAccessor&&) = delete; + /// \brief Get the scalar value at the given position. /// A null optional parent returns monostate; a null required field is an error. Result Get(const StructLike& struct_like) const {