Skip to content

Conversation

@Adityav369
Copy link
Collaborator

…g of mixed formats and SDK type reconstruction examples

…g of mixed formats and SDK type reconstruction examples
@jazzberry-ai
Copy link

jazzberry-ai bot commented Nov 27, 2025

Bug Report

Name Severity Example test case Description
Incorrect datetime comparison in metadata filtering High Ingest documents with mixed datetime formats (naive, timezone-aware, timestamp) and filter using $gte or $lte. The _filter_matches method in MockMorphik class does not correctly handle comparisons between datetime strings, integers (timestamps), and timezone-aware/naive datetimes, leading to TypeError exceptions. The fix involves adding checks for the types of the values being compared and converting them to appropriate types (datetime objects or timestamps) before performing the comparison.

Comments? Email us.

@Adityav369 Adityav369 merged commit 16af8c8 into main Nov 27, 2025
7 checks passed
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.

2 participants