eBay / tsv-utils

eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.
https://ebay.github.io/tsv-utils/
Boost Software License 1.0
1.43k stars 80 forks source link

tsv-split named field support #291

Closed jondegenhardt closed 4 years ago

jondegenhardt commented 4 years ago

This PR is a follow-on to PRs #284, #285, #286, #288, and #289. It adds named field support to tsv-uniq. It works the same way as the support added to tsv-select, see PR #284 for more info.

Named field support is backward compatible with numeric fields. As with the other tools, this support is not documented yet, even in the help text. Documentation will be added when named field support has been added to all tools and a release performed.

This PR also fixes a regression introduced in PR #290. That PR incorrectly identified field groups containing a backslash escaped hyphen as a mixed named-numeric ranges. These were flagged as invalid, incorrectly terminating command line argument processing.

This is a step towards enhancement request #25.

codecov-commenter commented 4 years ago

Codecov Report

Merging #291 into master will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #291   +/-   ##
=======================================
  Coverage   99.33%   99.33%           
=======================================
  Files          18       18           
  Lines        6607     6657   +50     
=======================================
+ Hits         6563     6613   +50     
  Misses         44       44           
Impacted Files Coverage Δ
common/src/tsv_utils/common/fieldlist.d 99.88% <100.00%> (+<0.01%) :arrow_up:
tsv-split/src/tsv_utils/tsv-split.d 98.48% <100.00%> (+0.03%) :arrow_up: