Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import org.apache.spark.sql.catalyst.parser.{ParseException, ParserInterface}
import org.apache.spark.sql.catalyst.plans.logical._
import org.apache.spark.sql.catalyst.trees.Origin
import org.apache.spark.sql.connector.catalog.{Table, TableCatalog}
import org.apache.spark.sql.execution.command.ExplainCommand
import org.apache.spark.sql.types.{DataType, StructType}

import org.apache.amoro.spark.sql.catalyst.plans.UnresolvedMergeIntoMixedFormatTable
Expand Down Expand Up @@ -165,6 +166,8 @@ class MixedFormatSqlExtensionsParser(delegate: ParserInterface) extends ParserIn
} else {
val parsedPlan = delegate.parsePlan(sqlText)
parsedPlan match {
case e: ExplainCommand =>
e.copy(logicalPlan = replaceMergeIntoCommands(e.logicalPlan))
case p =>
replaceMergeIntoCommands(p)
}
Expand Down