Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds TOON format support to the frequency command. TOON is a compact, human-readable encoding of the JSON data model designed for LLM prompts (see https://toonformat.dev). The implementation follows the existing pattern used for JSON and pretty-JSON output modes.

Key Changes:

  • Added --toon flag to output frequency distributions in TOON format
  • TOON output includes the same rich metadata as JSON (row count, field count, data type, cardinality, etc.)
  • The --no-stats flag now applies to both JSON and TOON output modes

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/cmd/frequency.rs Added --toon flag, TOON encoding logic, and extended JSON output path to handle TOON format with proper empty stats filtering
tests/test_frequency.rs Added comprehensive test coverage including basic TOON output, no-headers mode, ignore-case, limit handling, all-unique columns, and whitespace visualization
src/cmd/schema.rs Updated to include flag_toon: false in frequency args structure for schema command
README.md Updated documentation to reference TOON format examples and capabilities
scripts/nyc311-1m.freqs.toon Added example TOON output file demonstrating the format with real-world data (1M row NYC 311 dataset)

jqnatividad and others added 3 commits December 19, 2025 08:45
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…n to other file formats

as suggested by GH Copilot review
@jqnatividad jqnatividad merged commit dda8dc4 into master Dec 19, 2025
17 checks passed
@jqnatividad jqnatividad deleted the frequency-toon-format branch December 19, 2025 13:54
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