Skip to content

Commit

Permalink
done
Browse files Browse the repository at this point in the history
  • Loading branch information
scottsand-db committed Oct 12, 2023
1 parent d45cbe2 commit 38b25d4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions project/Mima.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@ object Mima {
}

def getPrevSparkName(currentVersion: String): String = {
val (major, minor, patch) = getMajorMinorPatch(currentVersion)
// name change in version 3.0.0, so versions > 3.0.0 should have delta-spark are prev version.
if (major >= 3 && (minor > 0 || patch > 0)) "delta-spark" else "delta-core"
val prevSparkVersion = getPrevSparkVersion(currentVersion)

val (major, minor, patch) = getMajorMinorPatch(prevSparkVersion)

if (major >= 3) "delta-spark" else "delta-core"
}

def getPrevSparkVersion(currentVersion: String): String = {
Expand Down

0 comments on commit 38b25d4

Please sign in to comment.