shenwei356 / csvtk

A cross-platform, efficient and practical CSV/TSV toolkit in Golang
http://bioinf.shenwei.me/csvtk
MIT License
992 stars 84 forks source link

csvtk join does not allow duplicated column names #235

Closed MostafaYA closed 1 year ago

MostafaYA commented 1 year ago

Prerequisites

Describe your issue

Hi, csvtk join does not allow duplicated column names as of version 0.26.0. This was ok in the previous version.

Input table below gives the error: [ERRO] duplicate colnames not allowed: Allele Sample Scheme ST Allele Allele Allele Allele Allele Allele Allele
sample cdifficile 8 adk(1) atpA(1) dxr(2) glyA(6) recA(1) sodA(5) tpi(1)

Thank you

I'm grateful to users who have greatly helped to report bugs and suggested new features.

I may respond to issues or fix bugs quickly, but I usually implement new features periodically (two or more weeks).

shenwei356 commented 1 year ago

Sorry for this bug. I've changed the logic: only selected columns cannot be duplicated now.