Skip to content

Commit 5cc6756

Browse files
committed
use consistent naming of DataFileType
1 parent 0e60304 commit 5cc6756

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/iceberg/v2_metadata.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ManifestEntryAdapterV2::ManifestEntryAdapterV2(
3636

3737
std::shared_ptr<Schema> ManifestEntryAdapterV2::EntrySchema(
3838
std::shared_ptr<StructType> partition_type) {
39-
return WrapFileSchema(FileType(std::move(partition_type)));
39+
return WrapFileSchema(DataFileType(std::move(partition_type)));
4040
}
4141
std::shared_ptr<Schema> ManifestEntryAdapterV2::WrapFileSchema(
4242
std::shared_ptr<StructType> file_schema) {
@@ -49,7 +49,7 @@ std::shared_ptr<Schema> ManifestEntryAdapterV2::WrapFileSchema(
4949
ManifestEntry::kDataFileField, std::move(file_schema)),
5050
});
5151
}
52-
std::shared_ptr<StructType> ManifestEntryAdapterV2::FileType(
52+
std::shared_ptr<StructType> ManifestEntryAdapterV2::DataFileType(
5353
std::shared_ptr<StructType> partition_type) {
5454
return std::make_shared<StructType>(std::vector<SchemaField>{
5555
DataFile::kContent.AsRequired(),

src/iceberg/v2_metadata.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ class ManifestEntryAdapterV2 : public ManifestEntryAdapter {
3636

3737
static std::shared_ptr<Schema> EntrySchema(std::shared_ptr<StructType> partition_type);
3838
static std::shared_ptr<Schema> WrapFileSchema(std::shared_ptr<StructType> file_schema);
39-
static std::shared_ptr<StructType> FileType(std::shared_ptr<StructType> partition_type);
39+
static std::shared_ptr<StructType> DataFileType(
40+
std::shared_ptr<StructType> partition_type);
4041

4142
protected:
4243
Result<std::optional<int64_t>> GetSequenceNumber(

src/iceberg/v3_metadata.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ ManifestEntryAdapterV3::ManifestEntryAdapterV3(
3737

3838
std::shared_ptr<Schema> ManifestEntryAdapterV3::EntrySchema(
3939
std::shared_ptr<StructType> partition_type) {
40-
return WrapFileSchema(FileType(std::move(partition_type)));
40+
return WrapFileSchema(DataFileType(std::move(partition_type)));
4141
}
4242

4343
std::shared_ptr<Schema> ManifestEntryAdapterV3::WrapFileSchema(
@@ -52,7 +52,7 @@ std::shared_ptr<Schema> ManifestEntryAdapterV3::WrapFileSchema(
5252
});
5353
}
5454

55-
std::shared_ptr<StructType> ManifestEntryAdapterV3::FileType(
55+
std::shared_ptr<StructType> ManifestEntryAdapterV3::DataFileType(
5656
std::shared_ptr<StructType> partition_type) {
5757
return std::make_shared<StructType>(std::vector<SchemaField>{
5858
DataFile::kContent.AsRequired(),

src/iceberg/v3_metadata.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ class ManifestEntryAdapterV3 : public ManifestEntryAdapter {
3737

3838
static std::shared_ptr<Schema> EntrySchema(std::shared_ptr<StructType> partition_type);
3939
static std::shared_ptr<Schema> WrapFileSchema(std::shared_ptr<StructType> file_schema);
40-
static std::shared_ptr<StructType> FileType(std::shared_ptr<StructType> partition_type);
40+
static std::shared_ptr<StructType> DataFileType(
41+
std::shared_ptr<StructType> partition_type);
4142

4243
protected:
4344
Result<std::optional<int64_t>> GetSequenceNumber(

0 commit comments

Comments
 (0)