You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(explore): add defensive null checks for SQL extraction in View Query modal
Addresses PR feedback for safer SQL extraction from parsing errors:
- Use explicit None check instead of truthiness to preserve falsy SQL like ""
- Split edge case tests into separate functions for better granularity
- Remove time-specific references from test docstrings
Changes:
- query_actions.py: Check `is not None` to avoid discarding valid empty SQL
- test_get_data_command.py: Split combined test into two independent tests
- test_get_query_handles_parsing_error_with_missing_sql_key
- test_get_query_handles_parsing_error_with_null_sql_value
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments