Skip to content

Commit

Permalink
A minor change from versions.toString to versions.mkString(", ")
Browse files Browse the repository at this point in the history
…to improve the error message for `DELTA_VERSIONS_NOT_CONTIGUOUS`.

GitOrigin-RevId: 88969376bcb36256dff542cc5eaee60042d789fd
  • Loading branch information
zsxwing authored and tdas committed Nov 14, 2023
1 parent 74cd1c9 commit 5cd42d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ trait DeltaErrorsBase
spark: SparkSession, deltaVersions: Seq[Long]): Throwable = {
new DeltaIllegalStateException(
errorClass = "DELTA_VERSIONS_NOT_CONTIGUOUS",
messageParameters = Array(deltaVersions.toString())
messageParameters = Array(deltaVersions.mkString(", "))
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class DeltaLogSuite extends QueryTest
val ex = intercept[IllegalStateException] {
staleLog.update()
}
assert(ex.getMessage.contains("Versions (Vector(0, 2)) are not contiguous."))
assert(ex.getMessage.contains("Versions (0, 2) are not contiguous."))
}
}

Expand Down

0 comments on commit 5cd42d6

Please sign in to comment.