org.apache.spark.sql.catalyst.parser.ParserUtils
Create a plan using the block of code when the given context exists.
Create a plan using the block of code when the given context exists. Otherwise return the original plan.
Map a LogicalPlan to another LogicalPlan if the passed context exists using the passed function.
Map a LogicalPlan to another LogicalPlan if the passed context exists using the passed function. The original plan is returned when the context does not exist.
Some syntactic sugar which makes it easier to work with optional clauses for LogicalPlans.