Hi Team,
Could you please help us with this. I am trying to run below query on OMNISCI which is failing but same query works on POSTGIS.
SELECT
COUNT(),
xy.start_polygon_id,
xy.end_polygon_id
FROM
(
SELECT
t.,
b.id as start_polygon_id,
c.id as end_polygon_id
FROM test10m t
JOIN GIANT_POLYGONS b ON
ST_INTERSECTS(ST_Point(t.start_station_longitude, t.start_station_latitude), b.wkt) = ‘t’
JOIN GIANT_POLYGONS c ON
ST_INTERSECTS(ST_Point(t.end_station_longitude, t.end_station_latitude), c.wkt) = ‘t’
) xy
GROUP BY xy.start_polygon_id, xy.end_polygon_id;
All the following columns are of type DOUBLE.
start_station_longitude
start_station_latitude
end_station_longitude
end_station_latitude
When I run complete query, i get below msgs.
error_msg:multiple SQL statements not allowed
I get below error msg when I run sub query,
SELECT
t.*,
b.id as start_polygon_id,
c.id as end_polygon_id
FROM test10m t
JOIN GIANT_POLYGONS b ON
ST_INTERSECTS(ST_Point(t.start_station_longitude, t.start_station_latitude), b.wkt) = 't'
JOIN GIANT_POLYGONS c ON
ST_INTERSECTS(ST_Point(t.end_station_longitude, t.end_station_latitude), c.wkt) = 't'
Hash join failed, reason(s): Cannot apply hash join to inner column type BOOLEAN | Cannot fall back to loop join for intermediate join quals