Skip to content

fix: prevent duplicate WHERE clause in filter SQL generation#894

Merged
renjie-run merged 2 commits into
masterfrom
fix-geo-sql-bug
Jul 7, 2026
Merged

fix: prevent duplicate WHERE clause in filter SQL generation#894
renjie-run merged 2 commits into
masterfrom
fix-geo-sql-bug

Conversation

@SailingBoat762

Copy link
Copy Markdown
Contributor

Added guard to prevent adding WHERE clause multiple times when _update_filter_sql is called repeatedly in StatisticSQLGenerator.

Added guard to prevent adding WHERE clause multiple times when _update_filter_sql is called repeatedly in StatisticSQLGenerator.
Comment thread dtable_events/utils/sql_generator.py
…lter_sql

Changed guard logic to strip existing WHERE prefix instead of early return, ensuring consistent filter SQL format regardless of how many times the method is called.
@renjie-run
renjie-run merged commit 6f18f6b into master Jul 7, 2026
1 check passed
@renjie-run
renjie-run deleted the fix-geo-sql-bug branch July 7, 2026 06:43
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