Skip to content

Commit

Permalink
Fix unwrappedCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
CTTY committed Jul 1, 2022
1 parent a8391bb commit c6f80a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ case class HoodieResolveReferences(sparkSession: SparkSession) extends Rule[Logi
case DeleteFromTable(table, condition)
if sparkAdapter.isHoodieTable(table, sparkSession) && table.resolved =>
val unwrappedCondition: Expression = condition match {
case option: Option[Expression] => option.get
case option: Option[Expression] => option.getOrElse(None)
case expr: Expression => expr
case _ => throw new IllegalArgumentException(s"condition has to be either Option[Expression] or Expression")
}
Expand Down

0 comments on commit c6f80a4

Please sign in to comment.