Skip to content

Commit 9b27c31

Browse files
authored
When we don't know deleted files count, we assume that there are deleted files.
1 parent b3b6550 commit 9b27c31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iceberg/manifest_list.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ struct ICEBERG_EXPORT ManifestFile {
166166
bool has_existing_files() const { return existing_files_count.value_or(1) > 0; }
167167

168168
/// \brief Checks if this manifest file contains entries with DELETED status
169-
bool has_deleted_files() const { return deleted_files_count.value_or(-1) > 0; }
169+
bool has_deleted_files() const { return deleted_files_count.value_or(1) > 0; }
170170

171171
inline static const SchemaField kManifestPath =
172172
SchemaField::MakeRequired(500, "manifest_path", std::make_shared<StringType>(),

0 commit comments

Comments
 (0)