Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/iceberg/file_format.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ enum class ICEBERG_EXPORT FileFormatType {
kAvro,
kOrc,
kPuffin,
kNimble,
};

/// \brief Convert a FileFormatType to a string
Expand All @@ -50,6 +51,8 @@ ICEBERG_EXPORT inline std::string_view ToString(FileFormatType format_type) {
return "orc";
case FileFormatType::kPuffin:
return "puffin";
case FileFormatType::kNimble:
return "nimble";
}
std::unreachable();
}
Expand All @@ -62,6 +65,7 @@ ICEBERG_EXPORT inline Result<FileFormatType> FileFormatTypeFromString(
if (lower == "avro") return FileFormatType::kAvro;
if (lower == "orc") return FileFormatType::kOrc;
if (lower == "puffin") return FileFormatType::kPuffin;
if (lower == "nimble") return FileFormatType::kNimble;
return InvalidArgument("Invalid file format type: {}", str);
}

Expand Down
Loading