@@ -22,14 +22,17 @@ This library achieves two different goals:
2222## Selecting the right Version
2323It is important to choose the right version depending of your Scala version.
2424
25- | osm4scala | Scala | Scalapb | Spark |
26- | :--------:| :------:| :-------:| :-----:|
27- | 1.0.7-RC1 | 2.11 | 0.9.7 | 2.4 |
28- | 1.0.7-RC1 | 2.12 | 0.10.2 | 2.4, 3.0 |
29- | 1.0.7-RC1 | 2.13 | 0.10.2 | NA |
30- | 1.0.6 | 2.12 | 0.10.2 | 3.0 |
31- | 1.0.6 | 2.13 | 0.10.2 | NA |
32- | 1.0.3 | 2.11, 2.12, 2.13 | 0.9.7 | NA |
25+ | osm4scala | Scalapb | Scala | Spark |
26+ | :---------:| :------:| :-------:| :-----:|
27+ | 1.0.7 | 0.9.7 | 2.11 | 2.4 |
28+ | 1.0.7 | 0.10.2 | 2.12 | 2.4, 3.0 |
29+ | 1.0.7 | 0.10.2 | 2.13 | NA |
30+
31+ For example,
32+ - If you want to import the Spark Connector for Scala 2.11 and Spark 2.4: ` com.acervera.osm4scala:osm4scala-spark2-shaded_2.11:1.0.7 `
33+ - If you want to import the Spark Connector for Scala 2.12 and Spark 2.4: ` com.acervera.osm4scala:osm4scala-spark2-shaded_2.12:1.0.7 `
34+ - If you want to import the Spark Connector for Scala 2.12 and Spark 3.0: ` com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 `
35+
3336
3437## Core library
3538With Osm4scala, you can forget about complexity of the ` osm.pbf ` format and think about a ** scala iterators of primitives**
@@ -94,7 +97,7 @@ StructType(
9497
95981. Start the shell:
9699 ```shell script
97- bin/spark-shell --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 '
100+ bin/spark-shell --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 '
98101 ```
991022. Load the data set and execute queries:
100103 ```scala
@@ -227,7 +230,7 @@ StructType(
227230### Examples from spark-sql
2282311. Start the shell:
229232 ```shell script
230- bin/spark-sql --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 '
233+ bin/spark-sql --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 '
231234 ```
2322352. Load the data set and execute queries:
233236 ``` sql
@@ -258,7 +261,7 @@ StructType(
258261### Examples from pyspark
2592621. Start the shell:
260263 ```shell script
261- bin/pyspark --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 '
264+ bin/pyspark --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 '
262265 ```
2632662. Load the data set and execute queries:
264267 ```python
@@ -291,27 +294,27 @@ The simplest way to add the library to the job, is using the shaded flat jar.
291294For example:
292295- Submitting a job:
293296 ```shell script
294- bin/spark-submit --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 ' .....
297+ bin/spark-submit --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 ' .....
295298 ```
296299
297300- Using in a Spark shell:
298301 ```shell script
299- bin/spark-shell --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 ' .....
302+ bin/spark-shell --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 ' .....
300303 ```
301304
302305- Using in a Spark SQL shell:
303306 ```shell script
304- bin/spark-sql --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 ' .....
307+ bin/spark-sql --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 ' .....
305308 ```
306309
307310- Using in a Spark R shell:
308311 ```
309- bin/sparkR --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 '
312+ bin/sparkR --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 '
310313 ```
311314
312315- Using in a PySpark shell:
313316 ```
314- bin/pyspark --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.6 '
317+ bin/pyspark --packages 'com.acervera.osm4scala:osm4scala-spark3-shaded_2.12:1.0.7 '
315318 ```
316319
317320
0 commit comments