Ticket #22 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

Spatial aggregate functions work only with group by

Reported by: ggarbis Owned by: stella
Priority: minor Milestone:
Component: runtime Version:
Keywords: Cc:


Spatial aggregate functions return empty set if a group by is not given.

Steps to Reproduce:
Insert Data: INSERT DATA { ex:s1 geo:asWKT "POINT(0 0)"strdf:WKT; ex:group 1 .

ex:s2 geo:asWKT "LINESTRING(0 0, 0 10)"strdf:WKT; ex:group 1 .
ex:s3 geo:asWKT "LINESTRING(0 10, 0 20)"strdf:WKT; ex:group 1 .

Query1: SELECT (strdf:union(?g1) as ?b)

{ ?s1 geo:asWKT ?g1; ex:group ?group. }

Query2: SELECT (strdf:union(?g1) as ?b)

{ ?s1 geo:asWKT ?g1; ex:group ?group. } GROUP BY ?group

Actual Results:
Query 2 returns an empty set.
Query 3 returns the union of the geometries, which is LINESTRING(0 0, 0 20)
Expected Results:
Both queries should return the union of the geometries.

Change History

comment:1 Changed 5 years ago by stella

  • Owner changed from pyravlos-team to stella
  • Status changed from new to assigned

comment:2 Changed 5 years ago by charnik

  • Status changed from assigned to closed
  • Resolution set to fixed

This bug has been fixed in changeset 904:e0e85317a1c4.

Note: See TracTickets for help on using tickets.