Skip to content

Commit

Permalink
Overwrite the geoparquet output directory to avoid test failures when…
Browse files Browse the repository at this point in the history
… running with other tests
  • Loading branch information
Kontinuation committed Oct 30, 2024
1 parent be98052 commit b694360
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ class geoparquetIOTests extends TestBaseScala with BeforeAndAfterAll {
val df = sparkSession
.createDataFrame(sparkSession.sparkContext.parallelize(data), schema)
.withColumn("geom", expr("ST_Point(id, id)"))
df.write.format("geoparquet").save(geoparquetoutputlocation)
df.write.format("geoparquet").mode("overwrite").save(geoparquetoutputlocation)

// Read it back
val df2 =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ class geoparquetIOTests extends TestBaseScala with BeforeAndAfterAll {
val df = sparkSession
.createDataFrame(sparkSession.sparkContext.parallelize(data), schema)
.withColumn("geom", expr("ST_Point(id, id)"))
df.write.format("geoparquet").save(geoparquetoutputlocation)
df.write.format("geoparquet").mode("overwrite").save(geoparquetoutputlocation)

// Read it back
val df2 =
Expand Down

0 comments on commit b694360

Please sign in to comment.