Skip to content

Commit

Permalink
Update PermanentViewMarker.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
AngersZhuuuu committed Jan 16, 2024
1 parent c504103 commit e28275f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ case class PermanentViewMarker(child: LogicalPlan, catalogTable: CatalogTable)

override def doCanonicalize(): LogicalPlan = {
child match {
case p @ Project(_, view @ View(_, _, _))
if p.getTagValue(PVM_NEW_INSTANCE_TAG).contains(true) =>
case p @ Project(_, view: View) if p.getTagValue(PVM_NEW_INSTANCE_TAG).contains(true) =>
view.canonicalized
case _ => child.canonicalized
case _ =>
child.canonicalized
}
}
}

0 comments on commit e28275f

Please sign in to comment.