-
Notifications
You must be signed in to change notification settings - Fork 29
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
apoc.export.csv.query() does not register duration.inSeconds formatting #121
Comments
Comment by vboulaye Hi, But I cannot figure out how the dashboard is working: the output from csv.query is calling the |
Comment by enriquezrene @vboulaye |
Comment by enriquezrene I think the following PR might work neo4j-contrib/neo4j-apoc-procedures#1322 |
Comment by fbiville
Based on a slightly updated variant of this test, the Java API of Neo4j and Cypher-Shell return 1 value: |
Hi there! I see the confusion, as mentioned above, it is the pretty print of the duration that looks like it isn't in seconds. The actual Duration object however is still in seconds and is equivalent. What I suggest is that if you want to export seconds specifically to not use the default toString on a duration: e.g specifically pull out the seconds: As this is not an APOC issues (will happen if you simply run in Browser: I will close this, feel free to open an issue on Neo4j about the pretty print :) Thanks, |
Issue by edtky
Sunday Apr 28, 2019 at 19:58 GMT
Originally opened as neo4j-contrib/neo4j-apoc-procedures#1184
Guidelines
Please note that GitHub issues are only meant for bug reports/feature requests. If you have questions on how to use APOC, please ask on the Neo4j Discussion Forum instead of creating an issue here.
Expected Behavior (Mandatory)
CALL apoc.export.csv.query(" ... ... RETURN duration.inSeconds(a.timeStamp, b.timeStamp) ..." )
should return "P0M0DT2651S" in the csv file (only seconds)
Actual Behavior (Mandatory)
wrongly returns "PT44M11S" in csv file (minutes and seconds)
(when queried directly on Neo4j, it correctly returns "P0M0DT930S" on the dashboard)
How to Reproduce the Problem
Simple Dataset (where it's possible)
Steps (Mandatory)
Screenshots (where it's possible)
Specifications (Mandatory)
Currently used versions
Versions
The text was updated successfully, but these errors were encountered: