Skip to content

Commit f148a02

Browse files
Merge pull request #10 from badrinathpatchikolla/spark-3.1
Spark 3.1
2 parents fe991a3 + 06c52b7 commit f148a02

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: scala
33
jdk: openjdk8
44

55
scala:
6-
- 2.11.12
6+
- 2.12.15
77

88
cache:
99
directories:

README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@
33
[![Build Status](https://travis-ci.com/modakanalytics/bigquery.almaren.svg?branch=master)](https://travis-ci.com/modakanalytics/bigquery.almaren)
44

55
```
6-
libraryDependencies += "com.github.music-of-the-ainur" %% "bigquery-almaren" % "0.0.4-2.4"
6+
libraryDependencies += "com.github.music-of-the-ainur" %% "bigquery-almaren" % "0.0.5-3.1"
7+
```
8+
9+
To run in spark-shell:
10+
11+
```
12+
spark-shell --packages "com.github.music-of-the-ainur:bigquery-almaren_2.12:0.0.5-$SPARK_VERSION,com.github.music-of-the-ainur:almaren-framework_2.12:0.9.3-$SPARK_VERSION"
713
```
814

915
BigQuery Connector was implemented using [https://github.com/GoogleCloudDataproc/spark-bigquery-connector](https://github.com/GoogleCloudDataproc/spark-bigquery-connector).
1016
For more details check the following [link](https://github.com/GoogleCloudDataproc/spark-bigquery-connector).
1117

1218
```
1319
14-
spark-shell --master "local[*]" --packages "com.github.music-of-the-ainur:almaren-framework_2.11:0.9.2-2.4,com.github.music-of-the-ainur:bigquery-almaren_2.11:0.0.4-2.4"
20+
spark-shell --master "local[*]" --packages "com.github.music-of-the-ainur:almaren-framework_2.12:0.9.3-3.1,com.github.music-of-the-ainur:bigquery-almaren_2.12:0.0.5-3.1"
1521
1622
```
1723

build.sbt

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
ThisBuild / name := "bigquery.almaren"
22
ThisBuild / organization := "com.github.music-of-the-ainur"
33

4-
lazy val scala211 = "2.11.12"
5-
lazy val scala212 = "2.12.10"
4+
lazy val scala212 = "2.12.15"
65

7-
crossScalaVersions := Seq(scala211,scala212)
86
ThisBuild / scalaVersion := scala212
97

10-
val sparkVersion = "2.4.0"
8+
val sparkVersion = "3.1.3"
9+
val majorVersionReg = "([0-9]+\\.[0-9]+).{0,}".r
10+
11+
val majorVersionReg(majorVersion) = sparkVersion
1112

1213
scalacOptions ++= Seq("-deprecation", "-feature")
1314

1415
libraryDependencies ++= Seq(
1516
"org.apache.spark" %% "spark-core" % sparkVersion % "provided",
1617
"org.apache.spark" %% "spark-sql" % sparkVersion % "provided",
17-
"com.github.music-of-the-ainur" %% "almaren-framework" % "0.9.2-2.4" % "provided",
18+
"com.github.music-of-the-ainur" %% "almaren-framework" % s"0.9.3-${majorVersion}" % "provided",
1819
"com.google.cloud.spark" %% "spark-bigquery-with-dependencies" % "0.23.2",
1920
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
2021
"org.scalatest" %% "scalatest" % "3.0.5" % "test"
@@ -39,6 +40,12 @@ ThisBuild / developers := List(
3940
name = "Daniel Mantovani",
4041
email = "[email protected]",
4142
url = url("https://github.com/music-of-the-ainur")
43+
),
44+
Developer(
45+
id = "badrinathpatchikolla",
46+
name = "Badrinath Patchikolla",
47+
email = "[email protected]",
48+
url = url("https://github.com/music-of-the-ainur")
4249
)
4350
)
4451

@@ -48,8 +55,6 @@ ThisBuild / homepage := Some(url("https://github.com/modakanalytics/bigquery.alm
4855
ThisBuild / organizationName := "Modak Analytics"
4956
ThisBuild / organizationHomepage := Some(url("https://github.com/modakanalytics"))
5057

51-
52-
// Remove all additional repository other than Maven Central from POM
5358
// Remove all additional repository other than Maven Central from POM
5459
credentials += Credentials(Path.userHome / ".sbt" / "sonatype_credential")
5560

0 commit comments

Comments
 (0)