case classAlterViewAsCommand(tableDesc: CatalogTable, query: LogicalPlan) extends LogicalPlan with RunnableCommand with Product with Serializable
Alter a view with given query plan. If the view name contains database prefix, this command will
alter a permanent view matching the given name, or throw an exception if view not exist. Else,
this command will try to alter a temporary view first, if view not exist, try permanent view
next, if still not exist, throw an exception.
tableDesc
the catalog table
query
the logical plan that represents the view; this is used to generate a canonicalized
version of the SQL that can be saved in the catalog.
Alter a view with given query plan. If the view name contains database prefix, this command will alter a permanent view matching the given name, or throw an exception if view not exist. Else, this command will try to alter a temporary view first, if view not exist, try permanent view next, if still not exist, throw an exception.
the catalog table
the logical plan that represents the view; this is used to generate a canonicalized version of the SQL that can be saved in the catalog.