-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compare files with different columns count #39
Comments
While validating both the configuration files, there is a check for the column cout here How about
This means only one column is compared and it will also check if that index of that column is present in both the CSV files. |
Using version 1.4 with "columns" flag:
|
I was thinking of introducing a feature where if we specify columns flag, we dont need to check if columns count match. All that matters is if the specified column is present on both csvs. That would satisfy your requirement i believe. |
Any update on this? This would be really nice. |
Maybe just replace following line Line 55 in 1007bf3
by this one if len(valueColumnPositions) == 0 && baseRecordCount != deltaRecordCount {
Now, I can use "--columns 0" to compare only the first column of two CSV files having different headers. |
Hello,
Thanks for this great tool!
Here is my use case:
• my base-csv contains whole rows with many columns.
• my delta-csv contains a list of primary keys (one column only).
I would like to get diff comparing only primary keys.
I got this error with csvdiff version 1.3.0:
Best regards,
Ben
The text was updated successfully, but these errors were encountered: