[MINOR] Update alter rename command class type for pattern matching (#5381)
This commit is contained in:
@@ -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) =>
|
||||
|
||||
Reference in New Issue
Block a user