关注 spark技术分享,
撸spark源码 玩spark最佳实践

AlterViewAsCommand

AlterViewAsCommand Logical Command

AlterViewAsCommand is a 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 LogicalPlan for the SQL query.

Note
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.

Executing Logical Command — run Method

Note
run is part of RunnableCommand Contract to execute (run) a logical command.

run…​FIXME

alterPermanentView Internal Method

alterPermanentView…​FIXME

Note
alterPermanentView is used when…​FIXME
赞(0) 打赏
未经允许不得转载:spark技术分享 » AlterViewAsCommand
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏