Skip to content

Commit 83db414

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

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
@@ -160,7 +160,7 @@ struct ICEBERG_EXPORT ManifestFile {
160160
int64_t first_row_id;
161161

162162
/// \brief Checks if this manifest file contains entries with ADDED status.
163-
bool has_added_files() const { return added_files_count.value_or(-1) > 0; }
163+
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.
166166
bool has_existing_files() const { return existing_files_count.value_or(-1) > 0; }

0 commit comments

Comments
 (0)