From 04a40c316f6da2bca68638dfbb9fed85aa54f9f9 Mon Sep 17 00:00:00 2001 From: Angerszhuuuu Date: Mon, 27 Nov 2023 18:12:09 +0800 Subject: [PATCH] update --- .../authz/rule/permanentview/PermanentViewMarker.scala | 8 +------- .../plugin/spark/authz/util/WithInternalChildren.scala | 4 ---- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/rule/permanentview/PermanentViewMarker.scala b/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/rule/permanentview/PermanentViewMarker.scala index 5ef8f4a748d..dd198c8b46a 100644 --- a/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/rule/permanentview/PermanentViewMarker.scala +++ b/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/rule/permanentview/PermanentViewMarker.scala @@ -21,13 +21,7 @@ import org.apache.spark.sql.catalyst.catalog.CatalogTable import org.apache.spark.sql.catalyst.expressions.Attribute import org.apache.spark.sql.catalyst.plans.logical.{LeafNode, LogicalPlan} -import org.apache.kyuubi.plugin.spark.authz.util.WithInternalChild - -case class PermanentViewMarker(child: LogicalPlan, catalogTable: CatalogTable) extends LeafNode - with WithInternalChild { +case class PermanentViewMarker(child: LogicalPlan, catalogTable: CatalogTable) extends LeafNode { override def output: Seq[Attribute] = child.output - - override def withNewChildInternal(newChild: LogicalPlan): LogicalPlan = - copy(child = newChild) } diff --git a/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/util/WithInternalChildren.scala b/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/util/WithInternalChildren.scala index 582b34abee4..76598c3c0f0 100644 --- a/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/util/WithInternalChildren.scala +++ b/extensions/spark/kyuubi-spark-authz/src/main/scala/org/apache/kyuubi/plugin/spark/authz/util/WithInternalChildren.scala @@ -24,10 +24,6 @@ trait WithInternalChildren { def withNewChildrenInternal(newChildren: IndexedSeq[LogicalPlan]): LogicalPlan } -trait WithInternalChild { - def withNewChildInternal(newChild: LogicalPlan): LogicalPlan -} - trait WithInternalExpressionChild { def withNewChildInternal(newChild: Expression): Expression }