Skip to content

Commit

Permalink
Merge pull request facebookincubator#12 from chaojun-zhang/WW43
Browse files Browse the repository at this point in the history
[POAE7-2463] [M2] [Integration] [Velox To Substrait] Merge code from upstream velox
  • Loading branch information
ZJie1 authored Oct 21, 2022
2 parents 1db29ba + 2ecf1fc commit 62d9398
Show file tree
Hide file tree
Showing 62 changed files with 285 additions and 7,770 deletions.
6 changes: 3 additions & 3 deletions velox/substrait/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ set(SRCS
VeloxToSubstraitPlan.cpp
VeloxToSubstraitType.cpp
VeloxSubstraitSignature.cpp
JoinUtils.cpp)

JoinUtils.cpp
VariantToVectorConverter.cpp)

add_library(velox_substrait_plan_converter ${SRCS})
target_include_directories(velox_substrait_plan_converter
PUBLIC ${PROTO_OUTPUT_DIR})
target_link_libraries(velox_substrait_plan_converter velox_connector
velox_dwio_dwrf_common yaml-cpp)
velox_dwio_dwrf_common)

if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
Expand Down
34 changes: 0 additions & 34 deletions velox/substrait/ExprUtils.cpp

This file was deleted.

4 changes: 2 additions & 2 deletions velox/substrait/JoinUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ ::substrait::JoinRel_JoinType toProto(core::JoinType joinType) {
return ::substrait::JoinRel_JoinType_JOIN_TYPE_OUTER;
case core::JoinType::kLeftSemi:
return ::substrait::JoinRel_JoinType_JOIN_TYPE_SEMI;
case core::JoinType::kAnti:
case core::JoinType::kNullAwareAnti:
return ::substrait::JoinRel_JoinType_JOIN_TYPE_ANTI;
default:
VELOX_UNSUPPORTED(
Expand All @@ -53,7 +53,7 @@ core::JoinType fromProto(::substrait::JoinRel_JoinType joinType) {
case ::substrait::JoinRel_JoinType_JOIN_TYPE_SEMI:
return core::JoinType::kLeftSemi;
case ::substrait::JoinRel_JoinType_JOIN_TYPE_ANTI:
return core::JoinType::kAnti;
return core::JoinType::kNullAwareAnti;
default:
VELOX_UNSUPPORTED("Unsupported substrait join type, {}", joinType);
}
Expand Down
Loading

0 comments on commit 62d9398

Please sign in to comment.