@@ -176,94 +176,90 @@ struct ICEBERG_EXPORT DataFile {
176176 std::optional<int64_t > content_size_in_bytes;
177177
178178 inline static const SchemaField kContent = SchemaField::MakeRequired(
179- 134 , " content" , std::make_shared<IntType> (),
179+ 134 , " content" , iceberg::int32 (),
180180 " Contents of the file: 0=data, 1=position deletes, 2=equality deletes" );
181181 inline static const SchemaField kFilePath = SchemaField::MakeRequired(
182- 100 , " file_path" , std::make_shared<StringType>(), " Location URI with FS scheme" );
183- inline static const SchemaField kFileFormat =
184- SchemaField::MakeRequired (101 , " file_format" , std::make_shared<IntType>(),
185- "File format name: avro, orc, or parquet");
182+ 100 , " file_path" , iceberg::string(), " Location URI with FS scheme" );
183+ inline static const SchemaField kFileFormat = SchemaField::MakeRequired(
184+ 101 , " file_format" , iceberg::int32(), " File format name: avro, orc, or parquet" );
186185 inline static const SchemaField kRecordCount = SchemaField::MakeRequired(
187- 103 , " record_count" , std::make_shared<LongType>(), " Number of records in the file" );
188- inline static const SchemaField kFileSize =
189- SchemaField::MakeRequired (104 , " file_size_in_bytes" , std::make_shared<LongType>(),
190- "Total file size in bytes");
186+ 103 , " record_count" , iceberg::int64(), " Number of records in the file" );
187+ inline static const SchemaField kFileSize = SchemaField::MakeRequired(
188+ 104 , " file_size_in_bytes" , iceberg::int64(), " Total file size in bytes" );
191189 inline static const SchemaField kColumnSizes = SchemaField::MakeOptional(
192190 108 , " column_sizes" ,
193191 std::make_shared<MapType>(
194192 SchemaField::MakeRequired (117 , std::string(MapType::kKeyName ),
195- std::make_shared<IntType> ()),
193+ iceberg::int32 ()),
196194 SchemaField::MakeRequired(118 , std::string(MapType::kValueName ),
197- std::make_shared<LongType> ())),
195+ iceberg::int64 ())),
198196 "Map of column id to total size on disk");
199197 inline static const SchemaField kValueCounts = SchemaField::MakeOptional(
200198 109 , " value_counts" ,
201199 std::make_shared<MapType>(
202200 SchemaField::MakeRequired (119 , std::string(MapType::kKeyName ),
203- std::make_shared<IntType> ()),
201+ iceberg::int32 ()),
204202 SchemaField::MakeRequired(120 , std::string(MapType::kValueName ),
205- std::make_shared<LongType> ())),
203+ iceberg::int64 ())),
206204 "Map of column id to total count, including null and NaN");
207205 inline static const SchemaField kNullValueCounts = SchemaField::MakeOptional(
208206 110 , " null_value_counts" ,
209207 std::make_shared<MapType>(
210208 SchemaField::MakeRequired (121 , std::string(MapType::kKeyName ),
211- std::make_shared<IntType> ()),
209+ iceberg::int32 ()),
212210 SchemaField::MakeRequired(122 , std::string(MapType::kValueName ),
213- std::make_shared<LongType> ())),
211+ iceberg::int64 ())),
214212 "Map of column id to null value count");
215213 inline static const SchemaField kNanValueCounts = SchemaField::MakeOptional(
216214 137 , " nan_value_counts" ,
217215 std::make_shared<MapType>(
218216 SchemaField::MakeRequired (138 , std::string(MapType::kKeyName ),
219- std::make_shared<IntType> ()),
217+ iceberg::int32 ()),
220218 SchemaField::MakeRequired(139 , std::string(MapType::kValueName ),
221- std::make_shared<LongType> ())),
219+ iceberg::int64 ())),
222220 "Map of column id to number of NaN values in the column");
223221 inline static const SchemaField kLowerBounds = SchemaField::MakeOptional(
224222 125 , " lower_bounds" ,
225223 std::make_shared<MapType>(
226224 SchemaField::MakeRequired (126 , std::string(MapType::kKeyName ),
227- std::make_shared<IntType> ()),
225+ iceberg::int32 ()),
228226 SchemaField::MakeRequired(127 , std::string(MapType::kValueName ),
229- std::make_shared<BinaryType> ())),
227+ iceberg::binary ())),
230228 "Map of column id to lower bound");
231229 inline static const SchemaField kUpperBounds = SchemaField::MakeOptional(
232230 128 , " upper_bounds" ,
233231 std::make_shared<MapType>(
234232 SchemaField::MakeRequired (129 , std::string(MapType::kKeyName ),
235- std::make_shared<IntType> ()),
233+ iceberg::int32 ()),
236234 SchemaField::MakeRequired(130 , std::string(MapType::kValueName ),
237- std::make_shared<BinaryType> ())),
235+ iceberg::binary ())),
238236 "Map of column id to upper bound");
239- inline static const SchemaField kKeyMetadata =
240- SchemaField::MakeOptional (131 , " key_metadata" , std::make_shared<BinaryType>(),
241- "Encryption key metadata blob");
237+ inline static const SchemaField kKeyMetadata = SchemaField::MakeOptional(
238+ 131 , " key_metadata" , iceberg::binary(), " Encryption key metadata blob" );
242239 inline static const SchemaField kSplitOffsets = SchemaField::MakeOptional(
243240 132 , " split_offsets" ,
244241 std::make_shared<ListType>(SchemaField::MakeRequired(
245- 133 , std::string(ListType::kElementName ), std::make_shared<LongType> ())),
242+ 133 , std::string(ListType::kElementName ), iceberg::int64 ())),
246243 " Splittable offsets" );
247244 inline static const SchemaField kEqualityIds = SchemaField::MakeOptional(
248245 135 , " equality_ids" ,
249246 std::make_shared<ListType>(SchemaField::MakeRequired(
250- 136 , std::string(ListType::kElementName ), std::make_shared<IntType> ())),
247+ 136 , std::string(ListType::kElementName ), iceberg::int32 ())),
251248 " Equality comparison field IDs" );
252- inline static const SchemaField kSortOrderId = SchemaField::MakeOptional(
253- 140 , " sort_order_id" , std::make_shared<IntType>(), " Sort order ID" );
254- inline static const SchemaField kFirstRowId =
255- SchemaField::MakeOptional (142 , " first_row_id" , std::make_shared<LongType>(),
256- "Starting row ID to assign to new rows");
249+ inline static const SchemaField kSortOrderId =
250+ SchemaField::MakeOptional (140 , " sort_order_id" , iceberg::int32(), "Sort order ID");
251+ inline static const SchemaField kFirstRowId = SchemaField::MakeOptional(
252+ 142 , " first_row_id" , iceberg::int64(), " Starting row ID to assign to new rows" );
257253 inline static const SchemaField kReferencedDataFile = SchemaField::MakeOptional(
258- 143 , " referenced_data_file" , std::make_shared<StringType> (),
254+ 143 , " referenced_data_file" , iceberg::string (),
259255 " Fully qualified location (URI with FS scheme) of a data file that all deletes "
260256 " reference" );
261257 inline static const SchemaField kContentOffset =
262- SchemaField::MakeOptional (144 , " content_offset" , std::make_shared<LongType> (),
258+ SchemaField::MakeOptional (144 , " content_offset" , iceberg::int64 (),
263259 "The offset in the file where the content starts");
264- inline static const SchemaField kContentSize = SchemaField::MakeOptional(
265- 145 , " content_size_in_bytes" , std::make_shared<LongType> (),
266- " The length of referenced content stored in the file" );
260+ inline static const SchemaField kContentSize =
261+ SchemaField::MakeOptional ( 145 , " content_size_in_bytes" , iceberg::int64 (),
262+ "The length of referenced content stored in the file");
267263
268264 static std::shared_ptr<StructType> Type (std::shared_ptr<StructType> partition_type);
269265};
@@ -293,13 +289,13 @@ struct ICEBERG_EXPORT ManifestEntry {
293289 DataFile data_file;
294290
295291 inline static const SchemaField kStatus =
296- SchemaField::MakeRequired (0 , " status" , std::make_shared<IntType> ());
292+ SchemaField::MakeRequired (0 , " status" , iceberg::int32 ());
297293 inline static const SchemaField kSnapshotId =
298- SchemaField::MakeOptional (1 , " snapshot_id" , std::make_shared<LongType> ());
294+ SchemaField::MakeOptional (1 , " snapshot_id" , iceberg::int64 ());
299295 inline static const SchemaField kSequenceNumber =
300- SchemaField::MakeOptional (3 , " sequence_number" , std::make_shared<LongType> ());
296+ SchemaField::MakeOptional (3 , " sequence_number" , iceberg::int64 ());
301297 inline static const SchemaField kFileSequenceNumber =
302- SchemaField::MakeOptional (4 , " file_sequence_number" , std::make_shared<LongType> ());
298+ SchemaField::MakeOptional (4 , " file_sequence_number" , iceberg::int64 ());
303299
304300 static std::shared_ptr<StructType> TypeFromPartitionType (
305301 std::shared_ptr<StructType> partition_type);
0 commit comments