Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

@jqnatividad jqnatividad requested a review from Copilot December 5, 2025 02:44
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 three new statistical columns (n_negative, n_zero, n_positive) to the stats command output, providing counts of negative, zero, and positive numeric values for Integer and Float data types.

Key Changes

  • Extended the StatsData structure with three new optional u64 fields for the count columns
  • Updated MAX_STAT_COLUMNS constant from 44 to 47 to accommodate the new columns
  • Added column definitions to STATSDATA_TYPES_MAP as JsonTypes::Int
  • Inserted the new columns in the output header and data records between nullcount and max_precision
  • Updated all test files and expected output resources to include the new columns with appropriate values

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated no comments.

File Description
src/cmd/stats.rs Core implementation: added fields to StatsData struct, updated constants, and added output logic for the three new count columns
tests/test_stats.rs Updated all test expectations to include the new columns with correct values for various test scenarios
resources/test/*.csv Updated all expected output CSV files with the new columns and recalculated fingerprint hashes

@jqnatividad jqnatividad merged commit d14097f into master Dec 5, 2025
22 of 24 checks passed
@jqnatividad jqnatividad deleted the stats-n_counts branch December 5, 2025 03:04
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