Code Monkey home page Code Monkey logo

Comments (6)

nicolewhite avatar nicolewhite commented on September 25, 2024

Yeah, this repo accompanies a video where I create those files. I'll make some changes to this repo so that it can stand alone.

I'll try to recreate the .cql crash.

from neo4j-complaints.

magaton avatar magaton commented on September 25, 2024

I watched the webinar. Very very useful, thanks. I think the problem is (with the latest csv file) that some of the Issues are blanks, so MERGE fails. You are addressing this problem with subproducts and subissues by composing new files. However I'd like to be able to do this on fly. Examine the row and call merge ONLY if particular column is not null. I know I can do this with WHERE clause after Load CSV, but this is not good enough. Could you maybe suggest the way to do that? Thanks

from neo4j-complaints.

nicolewhite avatar nicolewhite commented on September 25, 2024

What's wrong with doing it in the WHERE clause? That's the change I was going to make.

from neo4j-complaints.

magaton avatar magaton commented on September 25, 2024

Only that you need to do LOAD CSV multiple times for each of the columns you want to merge and where you expect empty values. What would be good, I think, is to do Merge(s) with condition (if not empty) within the single row read. I found FOREACH trick by Marak Needham explaining this: http://www.markhneedham.com/blog/2014/08/22/neo4j-load-csv-handling-empty-columns

from neo4j-complaints.

nicolewhite avatar nicolewhite commented on September 25, 2024

Yes, then you would need to use the FOREACH hack, unfortunately. I purposely avoided that in the webinar because it's pretty ugly.

from neo4j-complaints.

nicolewhite avatar nicolewhite commented on September 25, 2024

I've updated the repository to use Consumer_Complaints.csv across all the import queries. Also, I'm guessing your exception was raised because LOAD_CSV.cql requires the missing files you were asking about.

from neo4j-complaints.

Related Issues (4)

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.