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)
scionaltera pushed a commit to scionaltera/spring-ai that referenced this pull request Sep 3, 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]>

Auto-cherry-pick to 1.0.x
Fixes spring-projects#4172
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 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]>

Auto-cherry-pick to 1.0.x
Fixes spring-projects#4172
Willam2004 pushed a commit to Willam2004/spring-ai that referenced this pull request Oct 11, 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]>

Auto-cherry-pick to 1.0.x
Fixes spring-projects#4172

Signed-off-by: 家娃 <[email protected]>
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