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 Jun 17, 2022
1 parent f21bb88 commit c37db15
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 @@ -457,7 +457,7 @@ std::shared_ptr<const core::PlanNode> SubstraitVeloxPlanConverter::toVeloxPlan(
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 @@ -102,6 +102,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 c37db15

Please sign in to comment.