Skip to content

feat: support listing all reflections without a dataset argument#14

Merged
rahim-bhojani merged 2 commits intomainfrom
feat/reflection-list-all
Apr 14, 2026
Merged

feat: support listing all reflections without a dataset argument#14
rahim-bhojani merged 2 commits intomainfrom
feat/reflection-list-all

Conversation

@rahim-bhojani
Copy link
Copy Markdown
Contributor

@rahim-bhojani rahim-bhojani commented Apr 13, 2026

Summary

  • Make dremio reflection list work without a dataset path — returns all reflections in the project (equivalent to SELECT * FROM sys.project.reflections)
  • Add --limit / -l flag to cap the number of rows returned, useful for large projects
  • Existing behavior (dremio reflection list my.dataset) is unchanged

Closes #10

Test plan

  • dremio reflection list returns all project reflections
  • dremio reflection list my.dataset still returns only reflections for that dataset
  • dremio reflection list --limit 10 caps output to 10 rows
  • dremio reflection list my.dataset --limit 5 combines dataset filter and limit
  • Unit tests pass: pytest tests/test_commands/test_reflection.py

🤖 Generated with Claude Code

Make `dremio reflection list` work without a dataset path — queries
sys.project.reflections with no WHERE filter.  Add --limit/-l flag to
cap result size for large projects.

Closes #10

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Address review feedback — support filtering reflections by type
(raw/aggregation), status (CAN_ACCELERATE, FAILED, etc.), and
dataset name (substring match via ILIKE).  All filters compose
with each other and with the existing path argument and --limit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rahim-bhojani rahim-bhojani merged commit d28e1fb into main Apr 14, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Reflection List: support listing all reflections without a dataset argument

2 participants