Skip to content
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

datastore_search truncates timestamps to seconds #8202

Open
wardi opened this issue Apr 29, 2024 · 0 comments
Open

datastore_search truncates timestamps to seconds #8202

wardi opened this issue Apr 29, 2024 · 0 comments

Comments

@wardi
Copy link
Contributor

wardi commented Apr 29, 2024

CKAN version

master

Describe the bug

timestamps stored in postgres can store microsecond values but datastore_search truncates to seconds

fmt = "to_char({0}, 'YYYY-MM-DD\"T\"HH24:MI:SS')"

Steps to reproduce

datastore_create or load data with smaller than 1s precision

Expected behavior

Data stored (at least up to postgres accuracy) should be returned by datastore_search

Additional details

We use a trigger to record created/modified timestamps on rows and not returning full accuracy makes our tests fragile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant