diff --git a/libtiledbsoma/src/soma/soma_array.h b/libtiledbsoma/src/soma/soma_array.h index a6720429ca..53ffdeaad0 100644 --- a/libtiledbsoma/src/soma/soma_array.h +++ b/libtiledbsoma/src/soma/soma_array.h @@ -1567,7 +1567,10 @@ class SOMAArray : public SOMAObject { // Array associated with mq_ std::shared_ptr arr_; - // Array schema + // The TileDB ArraySchema. The schema is inaccessible when the TileDB Array + // is closed or opened in write mode which means we cannot use arr->schema() + // directly in those cases. Here, we store a copy of the schema so that it + // can be accessed in any mode std::shared_ptr schema_; // Array associated with metadata_. Metadata values need to be