Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
johanl-db committed Oct 10, 2023
1 parent 6a7fade commit 6d458a7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
4 changes: 0 additions & 4 deletions core/src/main/scala/io/delta/tables/DeltaTableBuilder.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ package io.delta.tables
import scala.collection.mutable

import org.apache.spark.sql.delta.{DeltaErrors, DeltaTableUtils}
<<<<<<< HEAD
=======
import org.apache.spark.sql.delta.DeltaTableUtils.withActiveSession
import org.apache.spark.sql.delta.sources.DeltaSQLConf
>>>>>>> 91d25681b (set active session for commands)
import io.delta.tables.execution._

import org.apache.spark.annotation._
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,10 @@ import org.apache.spark.sql.execution.datasources.v2.DataSourceV2Relation
trait DeltaTableOperations extends AnalysisHelper { self: DeltaTable =>

protected def executeDelete(condition: Option[Expression]): Unit = improveUnsupportedOpError {
<<<<<<< HEAD
val delete = DeleteFromTable(self.toDF.queryExecution.analyzed, condition)
toDataset(sparkSession, delete)
=======
withActiveSession(sparkSession) {
val delete = DeleteFromTable(
self.toDF.queryExecution.analyzed,
condition.getOrElse(Literal.TrueLiteral))
val delete = DeleteFromTable(self.toDF.queryExecution.analyzed, condition)
toDataset(sparkSession, delete)
}
>>>>>>> 91d25681b (set active session for commands)
}

protected def executeHistory(
Expand Down

0 comments on commit 6d458a7

Please sign in to comment.