Skip to content

Commit

Permalink
addressed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
razajafri committed Nov 2, 2024
1 parent 848e9aa commit 1938c2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
{"spark": "330db"}
{"spark": "332db"}
{"spark": "341db"}
{"spark": "350db143"}
spark-rapids-shim-json-lines ***/
package com.nvidia.spark.rapids

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,17 @@
spark-rapids-shim-json-lines ***/
package com.nvidia.spark.rapids.shims.spark350db143

import com.nvidia.spark.rapids.{DatabricksShimVersion, ShimVersion}

import org.apache.spark.SparkEnv
import com.nvidia.spark.rapids._

object SparkShimServiceProvider {
val VERSION = DatabricksShimVersion(3, 5, 0)
val VERSION = DatabricksShimVersion(3, 5, 0, "14.3")
}

class SparkShimServiceProvider extends com.nvidia.spark.rapids.SparkShimServiceProvider {

override def getShimVersion: ShimVersion = SparkShimServiceProvider.VERSION

def matchesVersion(version: String): Boolean = {
SparkEnv.get.conf.get("spark.databricks.clusterUsageTags.sparkVersion", "").startsWith("14.3.")
DatabricksShimServiceProvider.matchesVersion("14.3.x")
}
}

0 comments on commit 1938c2d

Please sign in to comment.