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
## Summary
Addresses CLI feedback from a marketing data engineer building a
semantic layer with Dremio Cloud EU + Claude Code:
- **`--file` and stdin support for `dremio query run`** — Multi-line SQL
(CREATE VIEW, CTEs) no longer requires shell escaping. Supports `--file
query.sql`, piped stdin, and `dremio query run -` for reading from
stdin.
- **401 region hint for EU users** — When a 401 comes from the default
US endpoint (`api.dremio.cloud`), the error now suggests checking the EU
endpoint. Previously took ~45 min to diagnose.
- **Fix `--` SQL comments being swallowed** — The breadcrumb comment
(`/* dremio-cli: submitter=cli */`) is now on its own line, so `--`
inline comments in user SQL no longer comment out the rest of the query.
- **Config path in `dremio setup --help`** — Help text now shows where
the config file is written and that region (US/EU) is prompted.
## Test plan
- [ ] `dremio query run "SELECT 1"` — inline arg still works
- [ ] `dremio query run --file query.sql` — reads and executes SQL from
file
- [ ] `echo "SELECT 1" | dremio query run -` — reads from stdin
- [ ] `dremio query run` with no args — shows helpful error
- [ ] `dremio query run --file missing.sql` — shows file-not-found error
- [ ] `dremio query run "-- comment\nSELECT 1"` — comment doesn't break
query
- [ ] Verify 401 against US endpoint includes EU region hint in error
message
- [ ] `dremio setup --help` shows config file path and region info
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments