bkietz commented on a change in pull request #10397:
URL: https://github.com/apache/arrow/pull/10397#discussion_r640917034
##########
File path: cpp/src/arrow/compute/exec/expression.cc
##########
@@ -492,9 +448,18 @@ Result<Expression> Expression::Bind(ValueDescr in,
if (literal()) return *this;
if (auto ref = field_ref()) {
- ARROW_ASSIGN_OR_RAISE(auto field, ref->GetOneOrNone(*in.type));
- auto descr = field ? ValueDescr{field->type(), in.shape} :
ValueDescr::Scalar(null());
- return Expression{Parameter{*ref, std::move(descr)}};
+ if (ref->IsNested()) {
+ return Status::NotImplemented("nested field references");
+ }
+
+ ARROW_ASSIGN_OR_RAISE(auto path, ref->FindOne(*in.type));
Review comment:
For now, I've added a hot path for Schema since that already has a hash
table from name -> index
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]