test facility: build BoxedExpression
from "pretty" representation of expression
#7881
Labels
BoxedExpression
from "pretty" representation of expression
#7881
Is your feature request related to a problem? Please describe.
We now have plenty of test cases and benchmark cases building
BoxedExpression
withbuild_from_prost
and hand-constructedExprNode
. The lack of function likebuild_expression_from_pretty("$0 > 10")
makes writing unit tests painful.An example:
If we have
build_expression_from_pretty
, this piece of code can be reduced to:Describe the solution you'd like
I think a subset of SQL expression parser is enough, only allowing variables in the form of
$n
representingInputRef
and basic operators.Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: