test: respect unstable overlay feature gate

This commit is contained in:
Jack Ye
2026-08-29 12:59:51 -07:00
parent 5f80dcb335
commit 47c10304b3
+8
View File
@@ -5763,6 +5763,14 @@ mod tests {
assert!(index_bytes > 0);
assert_eq!(with_index, data_only + index_bytes);
// Release builds reject unstable overlay datasets unless explicitly opted in.
if !cfg!(debug_assertions)
&& std::env::var_os(lance_table::feature_flags::ENABLE_UNSTABLE_DATA_OVERLAY_FILES_ENV)
.is_none()
{
return;
}
// Commit an overlay file supplying new `foo` values for the first three
// rows of fragment 0. There is no high-level API that writes overlays
// yet, so write the overlay's data file and commit the `DataOverlay`