Skip to content

Commit 7b88c3e

Browse files
authored
Warn users using dense arrays with sparse fragments. (#5116)
Support for reading sparse fragments in dense arrays will be removed in TileDB version 2.27 to be released in September 2024. To make sure these arrays continue to work after an upgrade to version 2.27 or later, please consolidate the sparse fragments using a TileDB version 2.26 or earlier. For now, this adds a warning to user using dense arrays with sparse fragment. Support for writing sparse fragments in dense arrays was removed in TileDB 2.5 and as the user can easily consolidate to get rid of sparse fragments, the decision was made to remove support for reading these arrays. [sc-47348] --- TYPE: DEPRECATION DESC: Warn users using dense arrays with sparse fragments.
1 parent f40530f commit 7b88c3e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tiledb/sm/query/query.cc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,6 +1880,18 @@ Status Query::create_strategy(bool skip_checks_serialization) {
18801880
all_dense &= frag_md->dense();
18811881
}
18821882

1883+
// We are going to deprecate dense arrays with sparse fragments in 2.27 but
1884+
// log a warning for now.
1885+
if (array_schema_->dense() && !all_dense) {
1886+
LOG_WARN(
1887+
"This dense array contains sparse fragments. Support for reading "
1888+
"sparse fragments in dense arrays will be removed in TileDB version "
1889+
"2.27 to be released in September 2024. To make sure this array "
1890+
"continues to work after an upgrade to version 2.27 or later, please "
1891+
"consolidate the sparse fragments using a TileDB version 2.26 or "
1892+
"earlier.");
1893+
}
1894+
18831895
if (is_dimension_label_ordered_read_) {
18841896
strategy_ = tdb_unique_ptr<IQueryStrategy>(tdb_new(
18851897
OrderedDimLabelReader,

0 commit comments

Comments
 (0)