lidavidm commented on a change in pull request #11466:
URL: https://github.com/apache/arrow/pull/11466#discussion_r741301925
##########
File path: cpp/src/arrow/compute/exec/expression.cc
##########
@@ -394,14 +394,13 @@ Result<Expression> BindImpl(Expression expr, const
TypeOrSchema& in,
if (expr.literal()) return expr;
if (auto ref = expr.field_ref()) {
- if (ref->IsNested()) {
- return Status::NotImplemented("nested field references");
- }
-
ARROW_ASSIGN_OR_RAISE(auto path, ref->FindOne(in));
auto bound = *expr.parameter();
- bound.index = path[0];
+ bound.indices.resize(path.indices().size());
+ for (size_t i = 0; i < path.indices().size(); ++i) {
+ bound.indices[i] = path.indices()[i];
+ }
Review comment:
Ah never mind that, I was being dumb about iterator vs container.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]