Skip to content

fix(datetime): strip whitespace from datetime strings #1

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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

priyankc
Copy link
Member

This fixes an issue where datetime strings with trailing spaces will cause an error when using the datetime expression in a formula query.

Fixes qdrant#985

Test Plan:

Created a script that writes to a local qdrant and correctly reproduced the bug.

Before the patch, it failed by correctly reproducing the bug:
image

After the patch, it works as expected:
image

Test Script for reference: https://gist.github.com/priyankc/9d8114b5aac5ae89241d78fb0488a782

This fixes an issue where datetime strings with trailing spaces will
cause an error when using the datetime expression in a formula query.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant