Skip to content

AlterViewAsCommand Logical Command

AlterViewAsCommand is a RunnableCommand.md[logical command] for ALTER VIEW SQL statement to alter a view.

AlterViewAsCommand works with a table identifier (as TableIdentifier), the original SQL text, and a spark-sql-LogicalPlan.md[LogicalPlan] for the SQL query.

alterViewQuery Labeled Alternative

AlterViewAsCommand is described by alterViewQuery labeled alternative in statement expression in SqlBase.g4 and parsed using SparkSqlParser.

When <>, AlterViewAsCommand attempts to alter a temporary view in the current SessionCatalog first, and if that "fails", <>.

=== [[run]] Executing Logical Command -- run Method

[source, scala]

run(session: SparkSession): Seq[Row]

NOTE: run is part of <> to execute (run) a logical command.

run...FIXME

=== [[alterPermanentView]] alterPermanentView Internal Method

[source, scala]

alterPermanentView(session: SparkSession, analyzedPlan: LogicalPlan): Unit

alterPermanentView...FIXME

NOTE: alterPermanentView is used when...FIXME


Last update: 2020-11-07