Skip to content

Commit

Permalink
Add doc url in error comment
Browse files Browse the repository at this point in the history
Signed-off-by: Partho Sarthi <[email protected]>
  • Loading branch information
parthosa committed Jan 3, 2025
1 parent 1259534 commit 1ccec41
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,16 @@ object ShuffleManagerResolver {
"3.5.1" -> "351"
)

private val shuffleManagerDocUrl = "https://docs.nvidia.com/spark-rapids/user-guide/latest/" +
"additional-functionality/rapids-shuffle.html#rapids-shuffle-manager"

def buildShuffleManagerClassName(smVersion: String): String = {
s"com.nvidia.spark.rapids.spark$smVersion.RapidsShuffleManager"
}

def commentForUnsupportedVersion(sparkVersion: String): String = {
s"Could not recommend RapidsShuffleManager as the provided version " +
s"$sparkVersion is not supported."
s"Cannot recommend RAPIDS Shuffle Manager for unsupported \'$sparkVersion\' version.\n" +
s" See supported versions: $shuffleManagerDocUrl."
}

def commentForMissingVersion: String = {
Expand Down

0 comments on commit 1ccec41

Please sign in to comment.