Description
There are many duplicate code patterns in Spark code:
treeNode.find(condition).isDefined treeNode.find(condition).nonEmpty treeNode.find(condition).isEmpty
Maybe we can introduce an `exists` function to simplify the above code patterns.
There are many duplicate code patterns in Spark code:
treeNode.find(condition).isDefined treeNode.find(condition).nonEmpty treeNode.find(condition).isEmpty
Maybe we can introduce an `exists` function to simplify the above code patterns.