Comments (4)
Well, that's a little embarrassing - there was a very obvious bug in the text output routine that I really should have picked up. I've fixed it now in aee3a66, and also pushed updates of the csv-diff and csv-diff-report gems to rubygems.org.
Also, in your test case above, you can use the --key-fields option instead of the --parent-fields and --child-fields option, i.e.
csvdiff prod.csv new.csv --key-fields data_uri --format text
You shouldn't specify the same field as both a parent and a child - they each need to be unique. If you have just one key field, or there is no hierarchical relationship in your data, you should just use --key-fields instead.
Thanks for finding and reporting this issue!
from csv-diff-report.
Thanks it's working now!
The reason i'm using the parent and child fields is because it's a lot faster.
I haven't been able to complete a diff when using the keyfield option.
The process seems to take a long time with comparing the files
from csv-diff-report.
OK - glad its working.
I am a little concerned that you might not be getting correct results using --parent-fields and --child-fields with the same field name. Its definitely not a case I considered, and there's every possibility this could give you incorrect results. What happens if you try using just --child-fields?
from csv-diff-report.
So far it seemed to give the right result, but i will do a more thorough to check if this is correct.
Using both fields as child-field seems to give the same result, the script has been running for around an hour and is still at comparing the records.
from csv-diff-report.
Related Issues (12)
- fields displayed for updates HOT 2
- Save as xlsx HOT 3
- Keyfield vs parent child field HOT 1
- Support UTF 8
- It does not work if csv file name is specified as an absolute path. HOT 2
- show only changed fields in diff report HOT 10
- Include-matched does not work on HTML reports HOT 5
- UTF-8 not recognized HOT 1
- Incorrect command given in README.md HOT 1
- Encoding::CompatibilityError when file path has non-ASCII character under some environment
- wrong number of arguments (given 3, expected 1..2) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csv-diff-report.