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

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


The following commit(s) were added to refs/heads/master by this push:
     new 056a86e4e5 [GH-1980] Hardcoded file paths to local user files  (#1981)
056a86e4e5 is described below

commit 056a86e4e50facdf84057cbd9c16aa1c7fb0f85e
Author: Raveendra Pujari <[email protected]>
AuthorDate: Sat Jun 7 18:08:47 2025 -0500

    [GH-1980] Hardcoded file paths to local user files  (#1981)
    
    * [#1980] : Hardcoded file paths to local user files
    
    * removed an extra line in geospark-zeppelin-demo.json
---
 docs/image/geospark-zeppelin-demo.json                            | 2 +-
 spark/common/src/test/java/org/apache/sedona/viz/NYCTripTest.java | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/image/geospark-zeppelin-demo.json 
b/docs/image/geospark-zeppelin-demo.json
index 4f2d53092c..7ca0be3bd4 100644
--- a/docs/image/geospark-zeppelin-demo.json
+++ b/docs/image/geospark-zeppelin-demo.json
@@ -1 +1 @@
-{"paragraphs":[{"text":"import 
org.datasyslab.geosparksql.utils.GeoSparkSQLRegistrator\nimport 
org.datasyslab.geosparkviz.sql.utils.GeoSparkVizRegistrator\n\n// Zeppelin 
creates and injects sc (SparkContext) and sqlContext (HiveContext or 
SqlContext)\n// So you don't need create them 
manually\n\nGeoSparkSQLRegistrator.registerAll(spark)\nGeoSparkVizRegistrator.registerAll(spark)\n\nvar
 pointdf = spark.read.format(\"csv\").option(\"delimiter\", 
\",\").option(\"header\", \"false\").load(\" [...]
+{"paragraphs":[{"text":"import 
org.datasyslab.geosparksql.utils.GeoSparkSQLRegistrator\nimport 
org.datasyslab.geosparkviz.sql.utils.GeoSparkVizRegistrator\n\n// Zeppelin 
creates and injects sc (SparkContext) and sqlContext (HiveContext or 
SqlContext)\n// So you don't need create them 
manually\n\nGeoSparkSQLRegistrator.registerAll(spark)\nGeoSparkVizRegistrator.registerAll(spark)\n\nvar
 pointdf = spark.read.format(\"csv\").option(\"delimiter\", 
\",\").option(\"header\", \"false\").load(\" [...]
\ No newline at end of file
diff --git a/spark/common/src/test/java/org/apache/sedona/viz/NYCTripTest.java 
b/spark/common/src/test/java/org/apache/sedona/viz/NYCTripTest.java
index f0eaf4eb5e..78315a5423 100644
--- a/spark/common/src/test/java/org/apache/sedona/viz/NYCTripTest.java
+++ b/spark/common/src/test/java/org/apache/sedona/viz/NYCTripTest.java
@@ -163,7 +163,7 @@ public class NYCTripTest {
     prop.load(inputProp);
     // PointInputLocation =
     // 
"file://"+NYCTripTest.class.getClassLoader().getResource("tweets.tsv").getPath();
-    PointInputLocation = 
"file:////Users/jiayu/Downloads/yellow_tripdata_2009-01.csv";
+    PointInputLocation = 
"examples/spark-sql/src/test/resources/yellow_tripdata_2009-01-subset.csv";
     PointOffset = 5;
     PointSplitter = FileDataSplitter.CSV;
     PointNumPartitions = 20;

Reply via email to