Skip to content

Unable to query/filter on start_datetime property after migrating from 0.8.6 to 0.9.6 #452

@bmcandr

Description

@bmcandr

I recently migrated from 0.8.6 to 0.9.6. Prior to this migration queries and filters on the start_datetime property worked as expected e.g., {"start_datetime": {"eq": "2026-01-01T00:00:00Z"}} returned matches.

After migration, I'm seeing the following error in the logs of our stac-fastapi-pgstac server on searches that include queries/filters on the start_datetime property:

asyncpg.exceptions.UndefinedFunctionError: function to_text(timestamp with time zone) does not exist
HINT: No function matches the given name and argument types. You might need to add explicit type casts.

On the other hand, queries on the end_datetime field work as expected so it seems start_datetime does not get the same special treatment(?). Is this expected or a regression? I was unable to find any mention of a change that would have this effect.


FWIW, I was able to replicate with stac-fastapi-pgstac @ df1de10 using docker compose after a fresh clone so it does not appear to be due to an incomplete migration or other issue in our DB.

Happy to provide any other info that might be helpful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions