Skip to content
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

CALL apoc.load.json path ignores config file setting #70

Closed
jphare opened this issue Jul 22, 2016 · 2 comments
Closed

CALL apoc.load.json path ignores config file setting #70

jphare opened this issue Jul 22, 2016 · 2 comments

Comments

@jphare
Copy link

jphare commented Jul 22, 2016

Great set of stored procs!

I noticed a small issue with CALL apoc.load.json, not sure I'd call it a bug though. If you are loading JSON locally you have to use a different path convention to the CSV loader if you have a default path set in the config file. Not a massive issue but using windows 10 I seem to spend a fair amount of time tweaking paths until they work.....

For example with windows 10 the CSV loader format is:

USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///file.csv" AS line

The equivalent in APOC would be:

WITH "file:///C:/default_location/file.json" AS url
CALL apoc.load.json(url) YIELD value

@jexp
Copy link
Member

jexp commented Jul 22, 2016

Yes it's totally different apis

But good point at aligning them

Von meinem iPhone gesendet

Am 22.07.2016 um 14:56 schrieb James Phare notifications@github.com:

Great set of stored procs!

I noticed a small issue with CALL apoc.load.json, not sure I'd call it a bug though. If you are loading JSON locally you have to use a different path convention to the CSV loader if you have a default path set in the config file. Not a massive issue but using windows 10 I seem to spend a fair amount of time tweaking paths until they work.....

For example with windows 10 the CSV loader format is:

USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///file.csv" AS line

The equivalent in APOC would be:

WITH "file:///C:/default_location/file.json" AS url
CALL apoc.load.json(url) YIELD value


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@inserpio
Copy link
Member

Need to read dbms.directories.import in the neo4j.conf file and act accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants