Skip to content

Commit

Permalink
Improve & unify validation in LogicalPlan::with_new_exprs (#12264)
Browse files Browse the repository at this point in the history
* Improve & unify validation in LogicalPlan::with_new_exprs

When adding new plan node type, `LogicalPlan::with_new_exprs` needs to
be updated. Different code branches apply different inputs validation
style (no validation, just assert, or assert with messages), so it's
unclear which code pattern to follow.  This commit unifies the
validation and adds it to the branches where there was none.

* #inline

* rename and return Result

* Add doc line
  • Loading branch information
findepi committed Sep 5, 2024
1 parent 7561cbc commit ab1e3e2
Showing 1 changed file with 193 additions and 87 deletions.
Loading

0 comments on commit ab1e3e2

Please sign in to comment.