Skip to content

Commit 9f4a037

Browse files
committed
address feedback
1 parent a144762 commit 9f4a037

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

src/iceberg/manifest/manifest_entry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ struct ICEBERG_EXPORT ManifestEntry {
326326
inline static const SchemaField kSnapshotId =
327327
SchemaField::MakeOptional(kSnapshotIdFieldId, "snapshot_id", int64());
328328

329-
inline static const int32_t kDataFileFieldId = 2;
329+
static constexpr int32_t kDataFileFieldId = 2;
330330
inline static const std::string kDataFileField = "data_file";
331331

332332
static constexpr int32_t kSequenceNumberFieldId = 3;

src/iceberg/manifest/manifest_list.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -153,63 +153,63 @@ struct ICEBERG_EXPORT ManifestFile {
153153
/// \brief Checks if this manifest file contains entries with DELETED status
154154
bool has_deleted_files() const { return deleted_files_count.value_or(1) > 0; }
155155

156-
inline static const int32_t kManifestPathFieldId = 500;
156+
static constexpr int32_t kManifestPathFieldId = 500;
157157
inline static const SchemaField kManifestPath = SchemaField::MakeRequired(
158158
kManifestPathFieldId, "manifest_path", string(), "Location URI with FS scheme");
159159

160-
inline static const int32_t kManifestLengthFieldId = 501;
160+
static constexpr int32_t kManifestLengthFieldId = 501;
161161
inline static const SchemaField kManifestLength = SchemaField::MakeRequired(
162162
kManifestLengthFieldId, "manifest_length", int64(), "Total file size in bytes");
163163

164-
inline static const int32_t kPartitionSpecIdFieldId = 502;
164+
static constexpr int32_t kPartitionSpecIdFieldId = 502;
165165
inline static const SchemaField kPartitionSpecId = SchemaField::MakeRequired(
166166
kPartitionSpecIdFieldId, "partition_spec_id", int32(), "Spec ID used to write");
167167

168-
inline static const int32_t kContentFieldId = 517;
168+
static constexpr int32_t kContentFieldId = 517;
169169
inline static const SchemaField kContent = SchemaField::MakeOptional(
170170
kContentFieldId, "content", int32(), "Contents of the manifest: 0=data, 1=deletes");
171171

172-
inline static const int32_t kSequenceNumberFieldId = 515;
172+
static constexpr int32_t kSequenceNumberFieldId = 515;
173173
inline static const SchemaField kSequenceNumber =
174174
SchemaField::MakeOptional(kSequenceNumberFieldId, "sequence_number", int64(),
175175
"Sequence number when the manifest was added");
176176

177-
inline static const int32_t kMinSequenceNumberFieldId = 516;
177+
static constexpr int32_t kMinSequenceNumberFieldId = 516;
178178
inline static const SchemaField kMinSequenceNumber =
179179
SchemaField::MakeOptional(kMinSequenceNumberFieldId, "min_sequence_number", int64(),
180180
"Lowest sequence number in the manifest");
181181

182-
inline static const int32_t kAddedSnapshotIdFieldId = 503;
182+
static constexpr int32_t kAddedSnapshotIdFieldId = 503;
183183
inline static const SchemaField kAddedSnapshotId =
184184
SchemaField::MakeRequired(kAddedSnapshotIdFieldId, "added_snapshot_id", int64(),
185185
"Snapshot ID that added the manifest");
186186

187-
inline static const int32_t kAddedFilesCountFieldId = 504;
187+
static constexpr int32_t kAddedFilesCountFieldId = 504;
188188
inline static const SchemaField kAddedFilesCount = SchemaField::MakeOptional(
189189
kAddedFilesCountFieldId, "added_files_count", int32(), "Added entry count");
190190

191-
inline static const int32_t kExistingFilesCountFieldId = 505;
191+
static constexpr int32_t kExistingFilesCountFieldId = 505;
192192
inline static const SchemaField kExistingFilesCount =
193193
SchemaField::MakeOptional(kExistingFilesCountFieldId, "existing_files_count",
194194
int32(), "Existing entry count");
195195

196-
inline static const int32_t kDeletedFilesCountFieldId = 506;
196+
static constexpr int32_t kDeletedFilesCountFieldId = 506;
197197
inline static const SchemaField kDeletedFilesCount = SchemaField::MakeOptional(
198198
kDeletedFilesCountFieldId, "deleted_files_count", int32(), "Deleted entry count");
199199

200-
inline static const int32_t kAddedRowsCountFieldId = 512;
200+
static constexpr int32_t kAddedRowsCountFieldId = 512;
201201
inline static const SchemaField kAddedRowsCount = SchemaField::MakeOptional(
202202
kAddedRowsCountFieldId, "added_rows_count", int64(), "Added rows count");
203203

204-
inline static const int32_t kExistingRowsCountFieldId = 513;
204+
static constexpr int32_t kExistingRowsCountFieldId = 513;
205205
inline static const SchemaField kExistingRowsCount = SchemaField::MakeOptional(
206206
kExistingRowsCountFieldId, "existing_rows_count", int64(), "Existing rows count");
207207

208-
inline static const int32_t kDeletedRowsCountFieldId = 514;
208+
static constexpr int32_t kDeletedRowsCountFieldId = 514;
209209
inline static const SchemaField kDeletedRowsCount = SchemaField::MakeOptional(
210210
kDeletedRowsCountFieldId, "deleted_rows_count", int64(), "Deleted rows count");
211211

212-
inline static const int32_t kPartitionSummaryFieldId = 507;
212+
static constexpr int32_t kPartitionSummaryFieldId = 507;
213213
inline static const SchemaField kPartitions = SchemaField::MakeOptional(
214214
kPartitionSummaryFieldId, "partitions",
215215
list(SchemaField::MakeRequired(508, std::string(ListType::kElementName),
@@ -221,11 +221,11 @@ struct ICEBERG_EXPORT ManifestFile {
221221
}))),
222222
"Summary for each partition");
223223

224-
inline static const int32_t kKeyMetadataFieldId = 519;
224+
static constexpr int32_t kKeyMetadataFieldId = 519;
225225
inline static const SchemaField kKeyMetadata = SchemaField::MakeOptional(
226226
kKeyMetadataFieldId, "key_metadata", binary(), "Encryption key metadata blob");
227227

228-
inline static const int32_t kFirstRowIdFieldId = 520;
228+
static constexpr int32_t kFirstRowIdFieldId = 520;
229229
inline static const SchemaField kFirstRowId = SchemaField::MakeOptional(
230230
kFirstRowIdFieldId, "first_row_id", int64(),
231231
"Starting row ID to assign to new rows in ADDED data files");

0 commit comments

Comments
 (0)