Skip to content

Conversation

@jqnatividad
Copy link
Collaborator

fixes #2997

@jqnatividad jqnatividad requested a review from Copilot September 17, 2025 12:19
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 fixes delimiter detection for the schema command, specifically addressing issue #2997 where TSV files were incorrectly parsed with comma delimiters instead of tabs, causing column concatenation issues.

  • Updated the schema command to properly auto-detect delimiters based on file extensions
  • Modified the get_stats_records function to use qsv's Config system for delimiter detection
  • Added comprehensive test coverage for TSV delimiter detection

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/cmd/schema.rs Updated help text to remove hardcoded comma default delimiter
src/util.rs Enhanced get_stats_records function with proper delimiter detection logic using qsv's Config system
tests/test_schema.rs Added comprehensive test for TSV delimiter detection to prevent regression
tests/test_pivotp.rs Updated test expectations to match new float formatting and added aggregation parameter

@jqnatividad jqnatividad merged commit 2b74e5c into master Sep 17, 2025
1 check was pending
@jqnatividad jqnatividad deleted the 2997-schema-tsv-autodetect-delim branch September 17, 2025 13:38
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.

BUG: schema command does not correctly detect tab delimiter of input TSV file

2 participants