orchestracities / ngsi-timeseries-api

QuantumLeap: a FIWARE Generic Enabler to support the usage of NGSIv2 (and NGSI-LD experimentally) data in time-series databases
https://quantumleap.rtfd.io/
MIT License
38 stars 49 forks source link

Enable Timescale equality geo queries #376

Open c0c0n3 opened 4 years ago

c0c0n3 commented 4 years ago

Is your feature request related to a problem? Please describe.

The Reporter always returns a 422 on receiving a geo query with an NGSI SLF equals operator---have a look at the geo_query_handler module. This is because geo queries were only supported by the Crate backend and a bug in Crate results in the equals operator not working properly---see #120 about it. As of PR #374 we've had a fully functional implementation of geo queries in the Timescale backend, including equality queries. The Reporter should take this into account and let clients use the equals operator if the query targets the Timescale backend.

Describe the solution you'd like

Change the geo_query_handler module so it lets equality queries go through if they target Timescale whereas still returning a 422 if the backend is Crate. Update the test_geo* modules accordingly so that in the case of Timescale we check equality works!

Describe alternatives you've considered

N/A

Additional context

See #374, #120.

github-actions[bot] commented 3 years ago

Stale issue message