Skip to content

Commit

Permalink
feat: helpers for conversion functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Jun 3, 2022
1 parent 23f37f5 commit b28e5b1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cpp/src/arrow/engine/substrait/expression_internal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,15 @@ Result<compute::Expression> FromProto(const substrait::Expression& expr,
return arrow_function(scalar_fn);
}

case substrait::Expression::kEnum: {
auto enum_expr = expr.enum_();
if(enum_expr.has_specified()){
return compute::literal(std::move(enum_expr.specified()));
} else {
return Status::Invalid("Substrait Enum value not specified");
}
}

default:
break;
}
Expand Down

0 comments on commit b28e5b1

Please sign in to comment.