Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/14874#discussion_r76834884
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala ---
@@ -1269,19 +1269,13 @@ class SparkSqlAstBuilder(conf: SQLConf) extends
AstBuilder {
}
/**
- * Alter the query of a view. This creates a [[CreateViewCommand]]
command.
+ * Alter the query of a view. This creates a [[AlterViewCommand]]
command.
*/
override def visitAlterViewQuery(ctx: AlterViewQueryContext):
LogicalPlan = withOrigin(ctx) {
- createView(
--- End diff --
Now, we can remove this function `createView`. It is only being used by
`visitCreateView`. We just need to directly create a `CreateViewCommand` in
`visitCreateView`
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]