Skip to content

Commit

Permalink
Merge pull request #32 from modakanalytics/spark-3.4
Browse files Browse the repository at this point in the history
Spark 3.4
  • Loading branch information
badrinathpatchikolla authored Sep 21, 2023
2 parents 412ea4e + 8d1fd57 commit 533cada
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,19 @@ JDBC Connector allow you to execute any SQL statement using Apache Spark.
To add JDBC connector dependency to your sbt build:

```
libraryDependencies += "com.github.music-of-the-ainur" %% "jdbc-almaren" % "0.0.6-3.3"
libraryDependencies += "com.github.music-of-the-ainur" %% "jdbc-almaren" % "0.0.6-3.4"
```
To run in spark-shell:

For scala-version(2.12):
```
spark-shell --master "local[*]" --packages "com.github.music-of-the-ainur:almaren-framework_2.12:0.9.10-3.3,com.github.music-of-the-ainur:jdbc-almaren_2.12:0.0.6-3.3"
spark-shell --master "local[*]" --packages "com.github.music-of-the-ainur:almaren-framework_2.12:0.9.10-3.4,com.github.music-of-the-ainur:jdbc-almaren_2.12:0.0.6-3.4"
```
For scala-version(2.13):
```
spark-shell --master "local[*]" --packages "com.github.music-of-the-ainur:almaren-framework_2.13:0.9.10-3.3,com.github.music-of-the-ainur:jdbc-almaren_2.13:0.0.6-3.3"
spark-shell --master "local[*]" --packages "com.github.music-of-the-ainur:almaren-framework_2.13:0.9.10-3.4,com.github.music-of-the-ainur:jdbc-almaren_2.13:0.0.6-3.4"
```

### Connector Usage
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ lazy val scala213 = "2.13.9"
crossScalaVersions := Seq(scala212,scala213)
ThisBuild / scalaVersion := scala213

val sparkVersion = "3.3.3"
val sparkVersion = "3.4.1"
val majorVersionReg = "([0-9]+\\.[0-9]+).{0,}".r
val majorVersionReg(majorVersion) = sparkVersion

Expand Down

0 comments on commit 533cada

Please sign in to comment.