vibhatha commented on code in PR #13078: URL: https://github.com/apache/arrow/pull/13078#discussion_r880310315
########## cpp/src/arrow/engine/substrait/relation_internal.cc: ########## @@ -225,6 +225,76 @@ Result<compute::Declaration> FromProto(const substrait::Rel& rel, }); } + case substrait::Rel::RelTypeCase::kJoin: { + const auto& join = rel.join(); + RETURN_NOT_OK(CheckRelCommon(join)); + + if (!join.has_left()) { + return Status::Invalid("substrait::JoinRel with no left relation"); + } + + if (!join.has_right()) { + return Status::Invalid("substrait::JoinRel with no right relation"); + } + + compute::JoinType join_type; + switch (join.type()) { + case 0: + return Status::NotImplemented("Unspecified join type is not supported"); + case 1: + join_type = compute::JoinType::INNER; + break; + case 2: + return Status::NotImplemented("Outer join type is not supported"); + case 3: + return Status::NotImplemented("Left join type is not supported"); + case 4: + return Status::NotImplemented("Right join type is not supported"); + case 5: + return Status::NotImplemented("Semi join type is not supported"); + case 6: + return Status::NotImplemented("Anti join type is not supported"); Review Comment: @westonpace thank you for the clarification. I will update the PR. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org