Skip to content

Commit b3b6550

Browse files
zhjwpkuFokko
andauthored
When we don't know existing files count, we assume that there are existing files
Co-authored-by: Fokko Driesprong <[email protected]>
1 parent 83db414 commit b3b6550

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
@@ -163,7 +163,7 @@ struct ICEBERG_EXPORT ManifestFile {
163163
bool has_added_files() const { return added_files_count.value_or(1) > 0; }
164164

165165
/// \brief Checks if this manifest file contains entries with EXISTING status.
166-
bool has_existing_files() const { return existing_files_count.value_or(-1) > 0; }
166+
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
169169
bool has_deleted_files() const { return deleted_files_count.value_or(-1) > 0; }

0 commit comments

Comments
 (0)