Skip to content

Conversation

dafriz
Copy link
Contributor

@dafriz dafriz commented Aug 17, 2025

Resolves issues in various FilterExpressionConverter implementations where the wrong date is sometimes used when being used concurrently due to SimpleDateFormat not being thread safe.

Added testDatesConcurrently test case to show that the right dates are now used.

spring-builds pushed a commit that referenced this pull request Aug 20, 2025
Improve type safety in FilterExpressionConverter date parsing

- Moved concurrent test into SimpleVectorStoreFilterExpressionConverterTests
- Replace var with explicit Instant typing in date parsing logic
- Import java.time.Instant for better type safety across all converters

Signed-off-by: David Frizelle <[email protected]>

Fixes #4172

(cherry picked from commit b4348e6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants