8000 fix: execute saved queries in their namespace by eddiethedean · Pull Request #76 · dmux/minilake · GitHub
[go: up one dir, main page]

Skip to content

fix: execute saved queries in their namespace - #76

Merged
dmux merged 3 commits into
dmux:mainfrom
eddiethedean:codex/fix-issue-50-saved-query-context
Oct 29, 2026
Merged

dmux merged 3 commits into
dmux:mainfrom
eddiethedean:codex/fix-issue-50-saved-query-context

Conversation

@eddiethedean
Copy link
Copy Markdown
Collaborator

Summary

Saved queries used by SQL job query and alert tasks now execute with their saved catalog and schema. SQL files keep the warehouse's current default namespace, and the task's warehouse remains the execution warehouse.

Add regression coverage for unqualified saved query SQL when the default namespace contains a conflicting table; verify both query jobs and alert evaluation read the saved namespace.

Fixes #50

Validation

  • ruff format --check and ruff check on changed files
  • pytest -q tests/test_jobs_sql_tasks.py tests/test_saved_queries.py tests/test_alerts.py (24 passed)

@eddiethedean
Copy link
Copy Markdown
Collaborator Author

All required checks have passed: lint, test, and UI. The PR is ready to merge.

@dmux dmux self-assigned this Oct 29, 2026
@dmux dmux added the bug Something isn't working label Oct 29, 2026
@dmux
dmux merged commit ec32164 into dmux:main Oct 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] SQL jobs ignore the saved query catalog and schema

2 participants

0