Skip to content

Commit

Permalink
Small improvement to lambda expression parsing (facebookincubator#2660)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookincubator#2660

Reviewed By: xiaoxmeng

Differential Revision: D39863640

Pulled By: mbasmanova

fbshipit-source-id: dbb973378bd0f09dd1f67535bac3224dc2c09736
  • Loading branch information
mbasmanova authored and facebook-github-bot committed Sep 28, 2022
1 parent 720990d commit 0d0eb30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions velox/duckdb/conversion/DuckParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,10 @@ std::shared_ptr<const core::IExpr> parseLambdaExpr(
VELOX_CHECK_NOT_NULL(fieldExpr);
names.push_back(fieldExpr->getFieldName());
}
} else {
VELOX_FAIL(
"Unexpected left-hand-side expression for the lambda expression: {}",
capture->toString())
}

return std::make_shared<const core::LambdaExpr>(
Expand Down

0 comments on commit 0d0eb30

Please sign in to comment.