AlterViewAsCommand Runnable Command

AlterViewAsCommand is a logical command to alter a view. It works with a table identifier (as TableIdentifier), the original SQL text, and a LogicalPlan for the SQL query.

AlterViewAsCommand corresponds to ALTER VIEW in SQL.

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

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

alterPermanentView Method


results matching ""

    No results matching ""