Skip to content

Commit

Permalink
Feels like this should get close to causing trouble with the Aggregat…
Browse files Browse the repository at this point in the history
…ing Scan.

Signed-off-by: Jim Hughes <jhughes@ccri.com>
  • Loading branch information
Jim Hughes committed Apr 29, 2021
1 parent 996b018 commit a6adb0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/test/resources/log4j.xml
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,10 @@
<!-- uncomment the following line to enable verbose log messages from the index query-planner -->

<!--
-->
<category name="org.locationtech.geomesa.index.utils.Explainer">
<priority value="trace"/>
</category>
-->

<!-- uncomment the following lines to enable verbose log messages from the Spark SQL query-planner -->

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class DensityIteratorTest extends Specification with TestWithFeatureType {
sequential

override val spec: String =
"an_id:Int,attr:Double,dtg:Date," +
"an_id:Int,attr:Double:index=join,dtg:Date," +
"*geom:Point:srid=4326," +
"testBox:MultiPolygon:srid=4326," +
"testLine:LineString:srid=4326," +
Expand All @@ -60,7 +60,8 @@ class DensityIteratorTest extends Specification with TestWithFeatureType {
q.getHints.put(QueryHints.DENSITY_WIDTH, 500)
q.getHints.put(QueryHints.DENSITY_HEIGHT, 500)
attribute.foreach(q.getHints.put(QueryHints.DENSITY_GEOM, _))
strategy.foreach(s => q.getHints.put(QueryHints.QUERY_INDEX, s.identifier))
strategy.foreach(s => q.getHints.put(QueryHints.QUERY_INDEX, "join:8:3:attr:geom:dtg"))
q.getHints.put(QueryHints.QUERY_INDEX, "join:8:attr:geom:dtg")
val decode = DensityScan.decodeResult(geom, 500, 500)
SelfClosingIterator(ds.getFeatureSource(sftName).getFeatures(q).features).flatMap(decode).toList
}
Expand Down

0 comments on commit a6adb0f

Please sign in to comment.