Skip to content

Commit b80b13a

Browse files
committed
id suffix
1 parent a4d4ebf commit b80b13a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

project/SparkVersionAxis.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ case class SparkVersionAxis(sparkVersion: String) extends sbt.VirtualAxis.WeakAx
3434
// and a common one for all Spark 3.x versions
3535
override val directorySuffix: String = if (sparkVersion.startsWith("2")) s"-spark${sparkVersionMinor}" else "-spark3"
3636

37-
// must be unique for all Spark 3.x versions in the matrix
38-
override val idSuffix: String =
39-
if (sparkVersion.startsWith("2")) directorySuffix.replaceAll("""\W+""", "_")
40-
else s"-spark${sparkVersion.replaceAll("""\W+""", "_")}"
37+
// must be unique for all Spark versions for a given Scala version
38+
// since we share common folder for all Spark 3.x versions we cannot use directory suffix here
39+
override val idSuffix: String = s"-spark${sparkVersion.replaceAll("""\W+""", "_")}"
4140
}
4241

4342

0 commit comments

Comments
 (0)