Skip to content

Commit 362bcee

Browse files
emilysun201309facebook-github-bot
authored andcommitted
feat: Add new FileFormat::SST to toFileFormat and toString
Summary: A new file format FileFormat::SST was introduced, but it was not added to these methods (toFileFormat and toString). Adding a new case statement to the toFileFormat function to return the FileFormat::SST value when the input string is "sst". The toString function is also updated to include a new case statement to return "sst" when the file format is FileFormat::SST. This will allow users to specify the file format as "sst" when working with Velox. Differential Revision: D68463647
1 parent bb745c1 commit 362bcee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

velox/dwio/common/Options.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ FileFormat toFileFormat(std::string_view s) {
3737
return FileFormat::NIMBLE;
3838
} else if (s == "orc") {
3939
return FileFormat::ORC;
40+
} else if (s == "sst") {
41+
return FileFormat::SST;
4042
}
4143
return FileFormat::UNKNOWN;
4244
}
@@ -61,6 +63,8 @@ std::string_view toString(FileFormat fmt) {
6163
return "nimble";
6264
case FileFormat::ORC:
6365
return "orc";
66+
case FileFormat::SST:
67+
return "sst";
6468
default:
6569
return "unknown";
6670
}

0 commit comments

Comments
 (0)