Giter Club home page Giter Club logo

Comments (4)

agardiner avatar agardiner commented on August 17, 2024

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.

broex avatar broex commented on August 17, 2024

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.

agardiner avatar agardiner commented on August 17, 2024

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.

broex avatar broex commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.