-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search returning null features for searches with no results #45
Comments
lossyrob
added a commit
to stac-utils/stac-fastapi
that referenced
this issue
Aug 18, 2021
I think this is due to select s from search('{"collections":["something"]}') s;
>>> {"next": null, "prev": null, "type": "FeatureCollection", "context": {"limit": 10, "matched": 0, "returned": 0}, "features": []}
select s from search('{"collections":["something"],"fields":{"include":["id"]}}') s;
>>> {"next": null, "prev": null, "type": "FeatureCollection", "context": {"limit": 10, "matched": 0, "returned": 0}, "features": null} @lossyrob could you point out which tests were failing ? |
These tests:
|
moradology
pushed a commit
to stac-utils/stac-fastapi
that referenced
this issue
Aug 20, 2021
* Add pgstac run and shell commands to Makefile * Update to pgstac 0.3.2 * Account for null features. See stac-utils/pgstac#45 * Set the collection features outside loop
fixed in #46 |
gadomski
pushed a commit
to stac-utils/stac-fastapi-pgstac
that referenced
this issue
Mar 22, 2023
* Add pgstac run and shell commands to Makefile * Update to pgstac 0.3.2 * Account for null features. See stac-utils/pgstac#45 * Set the collection features outside loop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Upgrading stac-fastapi to pgstac 0.3.2, some tests are failing because search returns look like:
Seems as though pgstac is returning
null
instead of[]
for empty searches, at least in some cases.The text was updated successfully, but these errors were encountered: