1
0

[MINOR] Update alter rename command class type for pattern matching (#5381)

This commit is contained in:
KnightChess
2022-04-27 10:39:51 +08:00
committed by GitHub
parent 77e333298d
commit 6ec039ba42
3 changed files with 5 additions and 5 deletions

View File

@@ -526,7 +526,7 @@ case class HoodiePostAnalysisRule(sparkSession: SparkSession) extends Rule[Logic
// Rewrite the AlterTableRenameCommand to AlterHoodieTableRenameCommand
case AlterTableRenameCommand(oldName, newName, isView)
if !isView && sparkAdapter.isHoodieTable(oldName, sparkSession) =>
new AlterHoodieTableRenameCommand(oldName, newName, isView)
AlterHoodieTableRenameCommand(oldName, newName, isView)
// Rewrite the AlterTableChangeColumnCommand to AlterHoodieTableChangeColumnCommand
case AlterTableChangeColumnCommand(tableName, columnName, newColumn)
if sparkAdapter.isHoodieTable(tableName, sparkSession) =>