Skip to content

Commit 0a0bc20

Browse files
committed
Add failing unit test on minimum reproducible example of #499
Signed-off-by: Jason T. Brown <jason@astraea.earth>
1 parent e1a727a commit 0a0bc20

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

core/src/test/scala/org/locationtech/rasterframes/RasterJoinSpec.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,16 @@ class RasterJoinSpec extends TestEnvironment with TestData with RasterMatchers {
172172
}
173173
}
174174

175+
it("should raster join multiple times on projected raster"){
176+
val df0 = Seq(one).toDF("proj_raster")
177+
val result = df0.select($"proj_raster" as "t1")
178+
.rasterJoin(df0.select($"proj_raster" as "t2"))
179+
.rasterJoin(df0.select($"proj_raster" as "t3"))
180+
181+
result.tileColumns.length should be (3)
182+
result.count() should be (1)
183+
}
184+
175185
it("should honor resampling options") {
176186
// test case. replicate existing test condition and check that resampling option results in different output
177187
val filterExpr = st_intersects(rf_geometry($"tile"), st_point(704940.0, 4251130.0))

0 commit comments

Comments
 (0)