[OBS] Boundaries query templates need parenthesis fix
See original GitHub issueWhile resolving some questions about OBS functions and integration we found out an issue with one of the query templates. These templates with the OR
clause:
shall include parenthesis to enforce the correct precedence:
SELECT * FROM OBS_GetAvailableGeometries(
ST_MakeEnvelope(-74, 41, -73, 40, 4326),
NULL,
<numer_id>,
<denom_id>,
<timespan_id>
) denoms
WHERE valid_numer IS TRUE
AND (valid_denom IS TRUE OR <denom_id> IS NULL) -- edited
AND valid_timespan IS TRUE
as explained in https://github.com/CartoDB/dataservices-api/issues/370#issuecomment-303959407
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Question / Help - Red border around sources | OBS Forums
When you select a source it shows the boundaries or borders with a red border ... Just click on one side and drag...
Read more >Customizing OC Output With Go Templates
This is a self-led workshop to demonstrate the power of Go templates and how much fun you can have while using them with...
Read more >Query Builder API | Adobe Experience Manager
The functionality of the Asset Share Query Builder is exposed through a Java API and a REST API.
Read more >Search templates | Elasticsearch Guide [8.5] | Elastic
A search template is a stored search you can run with different variables. If you use Elasticsearch as a search backend, you can...
Read more >Running parameterized queries | BigQuery - Google Cloud
To use an array type in a query parameter set the type to ARRAY<T> where T is the type of the elements in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, internally
denom_id
isnormalize
😃Could we close this then?