Skip to content

Commit

Permalink
add dwrf support in substrait (facebookincubator#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
JkSelf authored and zhejiangxiaomai committed Jun 29, 2022
1 parent 18d69ad commit 43d2d30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion velox/substrait/SubstraitToVeloxPlan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ SubstraitVeloxPlanConverter::toVeloxAggWithRowConstruct(
splitInfo->starts.emplace_back(file.start());
splitInfo->lengths.emplace_back(file.length());
auto format = file.format();
if (format == 0) {
if (format == 2 || format == 3) {
splitInfo->format = dwio::common::FileFormat::ORC;
} else if (format == 1) {
splitInfo->format = dwio::common::FileFormat::PARQUET;
Expand Down
2 changes: 2 additions & 0 deletions velox/substrait/proto/substrait/algebra.proto
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ message ReadRel {
enum FileFormat {
FILE_FORMAT_UNSPECIFIED = 0;
FILE_FORMAT_PARQUET = 1;
FILE_FORMAT_ORC = 2;
FILE_FORMAT_DWRF = 3;
}
}
}
Expand Down

0 comments on commit 43d2d30

Please sign in to comment.