You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2024/09/21 14:02:38 UTC

(sedona) branch website updated: [DOCS] 1) Fixed broken link to test data files 2) Minor issues in samp… (#1598)

This is an automated email from the ASF dual-hosted git repository.

jiayu pushed a commit to branch website
in repository https://gitbox.apache.org/repos/asf/sedona.git


The following commit(s) were added to refs/heads/website by this push:
     new 0551c7503 [DOCS] 1) Fixed broken link to test data files 2) Minor issues in samp… (#1598)
0551c7503 is described below

commit 0551c75035adee8697b1211e79ef2406f8b513b3
Author: Paul Wu <zw...@gmail.com>
AuthorDate: Sat Sep 21 07:02:32 2024 -0700

    [DOCS] 1) Fixed broken link to test data files 2) Minor issues in samp… (#1598)
    
    1. Replace the non-existent link https://github.com/apache/sedona/tree/master/core/src/test/resources
    
    with the valid link
    
    https://github.com/apache/sedona/tree/master/spark/common/src/test/resources
    
    2) Some minor issues in code sample (java and python)
---
 latest-snapshot/tutorial/sql/sql.md | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/latest-snapshot/tutorial/sql/sql.md b/latest-snapshot/tutorial/sql/sql.md
index 0bb5979fe..7cf36cab4 100644
--- a/latest-snapshot/tutorial/sql/sql.md
+++ b/latest-snapshot/tutorial/sql/sql.md
@@ -26,7 +26,7 @@ SedonaSQL supports SQL/MM Part3 Spatial SQL Standard. It includes four kinds of
 	myDataFrame.createOrReplaceTempView("spatialDf")
 	```
 
-Detailed SedonaSQL APIs are available here: [SedonaSQL API](../api/sql/Overview.md). You can find example county data (i.e., `county_small.tsv`) in [Sedona GitHub repo](https://github.com/apache/sedona/tree/master/core/src/test/resources).
+Detailed SedonaSQL APIs are available here: [SedonaSQL API](../api/sql/Overview.md). You can find example county data (i.e., `county_small.tsv`) in [Sedona GitHub repo](https://github.com/apache/sedona/tree/master/spark/common/src/test/resources).
 
 ## Set up dependencies
 
@@ -71,12 +71,12 @@ You can add additional Spark runtime config to the config builder. For example,
 
 	SparkSession config = SedonaContext.builder()
 	.master("local[*]") // Delete this if run in cluster mode
-	.appName("readTestScala") // Change this to a proper name
+	.appName("readTestJava") // Change this to a proper name
 	.getOrCreate()
 	```
 	If you use SedonaViz together with SedonaSQL, please add the following line after `SedonaContext.builder()` to enable Sedona Kryo serializer:
-	```scala
-	.config("spark.kryo.registrator", SedonaVizKryoRegistrator.class.getName) // org.apache.sedona.viz.core.Serde.SedonaVizKryoRegistrator
+	```java
+	.config("spark.kryo.registrator", SedonaVizKryoRegistrator.class.getName()) // org.apache.sedona.viz.core.Serde.SedonaVizKryoRegistrator
 	```
 
 === "Python"
@@ -118,16 +118,16 @@ The following method has been deprecated since Sedona 1.4.1. Please use the meth
 	```java
 	SparkSession sparkSession = SparkSession.builder()
 	.master("local[*]") // Delete this if run in cluster mode
-	.appName("readTestScala") // Change this to a proper name
+	.appName("readTestJava") // Change this to a proper name
 	// Enable Sedona custom Kryo serializer
-	.config("spark.serializer", KryoSerializer.class.getName) // org.apache.spark.serializer.KryoSerializer
-	.config("spark.kryo.registrator", SedonaKryoRegistrator.class.getName)
+	.config("spark.serializer", KryoSerializer.class.getName()) // org.apache.spark.serializer.KryoSerializer
+	.config("spark.kryo.registrator", SedonaKryoRegistrator.class.getName())
 	.getOrCreate() // org.apache.sedona.core.serde.SedonaKryoRegistrator
 	```
 	If you use SedonaViz together with SedonaSQL, please use the following two lines to enable Sedona Kryo serializer instead:
-	```scala
-	.config("spark.serializer", KryoSerializer.class.getName) // org.apache.spark.serializer.KryoSerializer
-	.config("spark.kryo.registrator", SedonaVizKryoRegistrator.class.getName) // org.apache.sedona.viz.core.Serde.SedonaVizKryoRegistrator
+	```java
+	.config("spark.serializer", KryoSerializer.class.getName()) // org.apache.spark.serializer.KryoSerializer
+	.config("spark.kryo.registrator", SedonaVizKryoRegistrator.class.getName()) // org.apache.sedona.viz.core.Serde.SedonaVizKryoRegistrator
 	```
 
 === "Python"
@@ -135,9 +135,9 @@ The following method has been deprecated since Sedona 1.4.1. Please use the meth
 	```python
 	sparkSession = SparkSession. \
 	    builder. \
-	    appName('appName'). \
-	    config("spark.serializer", KryoSerializer.getName). \
-	    config("spark.kryo.registrator", SedonaKryoRegistrator.getName). \
+	    appName('readTestPython'). \
+	    config("spark.serializer", KryoSerializer.getName()). \
+	    config("spark.kryo.registrator", SedonaKryoRegistrator.getName()). \
 	    config('spark.jars.packages',
 	           'org.apache.sedona:sedona-spark-shaded-3.0_2.12:{{ sedona.current_version }},'
 	           'org.datasyslab:geotools-wrapper:{{ sedona.current_geotools }}'). \