We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7443eaa commit ab6d8d4Copy full SHA for ab6d8d4
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
@@ -226,7 +226,7 @@ object RemoveAliasOnlyProject extends Rule[LogicalPlan] {
226
// when the project is the right child of the Union,
227
// this function is to check it.
228
def isUnionRightProj(p: Project, plan: LogicalPlan): Boolean = {
229
- plan.collectFirst{
+ plan.collectFirst {
230
case u @ Union(children) if children.tail.exists(_ eq p)
231
&& children.head.isInstanceOf[Project]
232
&& p.projectList.exists(proj =>
0 commit comments