From a4d3fd084c66cd7e7317c130a07c1d838fb88352 Mon Sep 17 00:00:00 2001 From: nullccxsy <32149055912@qq.com> Date: Wed, 13 Aug 2025 14:10:57 +0800 Subject: [PATCH] fix: content in manifest entry should be optional --- src/iceberg/manifest_entry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iceberg/manifest_entry.h b/src/iceberg/manifest_entry.h index 36fd8f823..0aa697aa0 100644 --- a/src/iceberg/manifest_entry.h +++ b/src/iceberg/manifest_entry.h @@ -176,7 +176,7 @@ struct ICEBERG_EXPORT DataFile { /// present std::optional content_size_in_bytes; - inline static const SchemaField kContent = SchemaField::MakeRequired( + inline static const SchemaField kContent = SchemaField::MakeOptional( 134, "content", iceberg::int32(), "Contents of the file: 0=data, 1=position deletes, 2=equality deletes"); inline static const SchemaField kFilePath = SchemaField::MakeRequired(