Skip to content

Conversation

@phacops
Copy link
Contributor

@phacops phacops commented Jan 30, 2026

Summary

  • Add FORMAT TABLE|JSON|CSV|VERTICAL command to switch output formats in SQL shells
  • Works in both tracing and system shell modes
  • Format setting displayed in status bar
  • Includes proper CSV escaping and MySQL-style vertical format

Test plan

  • Navigate to snuba-admin SQL shell (tracing or system mode)
  • Run HELP to verify FORMAT command appears
  • Execute a query, verify TABLE format (default)
  • Run FORMAT JSON, execute query, verify JSON output
  • Run FORMAT CSV, execute query, verify CSV output
  • Run FORMAT VERTICAL, execute query, verify vertical output
  • Verify FORMAT shows in status bar

🤖 Generated with Claude Code

@phacops phacops requested a review from a team as a code owner January 30, 2026 22:08
Add FORMAT command to switch between TABLE, JSON, CSV, and VERTICAL
output formats in both tracing and system shells. The format setting
is displayed in the status bar and persists for the session.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@phacops phacops force-pushed the phacops/admin-shell-output-formats branch from 2b6b90a to 853fccd Compare January 30, 2026 22:36
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