cloud-fan commented on code in PR #46267:
URL: https://github.com/apache/spark/pull/46267#discussion_r1595486032
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/view.scala:
##########
@@ -35,6 +35,56 @@ object EliminateView extends Rule[LogicalPlan] with
CastSupport {
}
}
+/**
+ * ViewBindingMode is used to specify the expected schema binding mode when we
want to create or
+ * replace a view in [[CreateViewStatement]].
+ */
+sealed trait ViewSchemaMode {
+ override val toString: String = getClass.getSimpleName.stripSuffix("$")
Review Comment:
We don't need this override since all subclasses of `ViewSchemaMode`
overrides `toString`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]