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

When importing a string array field with a blank value, the attribute value is interpreted as [""] instead of NULL as expected. #2817

Closed
sterin501 opened this issue Apr 25, 2022 · 0 comments · Fixed by #2843

Comments

@sterin501
Copy link

Guidelines

When importing a string array field with a blank value, the attribute value is interpreted as [""] instead of NULL as expected.

Expected Behavior (Mandatory)

It should import like neo4j-admin import

Actual Behavior (Mandatory)

It imports as empty list . it should be null value

How to Reproduce the Problem

APOC is importing as empty list .

├─────────────────────────────────────────────────────────────┤
│{"arr":["a","b","c","d"],"description":"string arr","id":"1"}│
├─────────────────────────────────────────────────────────────┤
│{"arr":[""],"description":"null arr","id":"2"} │
└──────────────────────────────────────────────────────

But neo4j-admin import importing it correctly

╒═════════════════════════════════════════════════════════════╕
│"n" │
╞═════════════════════════════════════════════════════════════╡
│{"arr":["a","b","c","d"],"description":"string arr","id":"1"}│
├─────────────────────────────────────────────────────────────┤
│{"description":"null arr","id":"2"} │
└─────────────────────────────────────────────────────────────┘

Simple Dataset (where it's possibile)

id:ID,:LABEL,description:STRING,arr:STRING[]
1,lab,string arr,a;b;c;d
2,lab,null arr,

Cypher : ``` `CALL apoc.import.csv([{fileName: 'test.csv', labels:[]}], [], {ignoreBlankString: true})` ```

Steps (Mandatory)

  1. Import sample file using APOC
  2. Import sample file using neo4j-admin import tool
  3. compare the output

Screenshots (where it's possibile)

Specifications (Mandatory)

4.4.5

Versions

  • OS: Linux
  • Neo4j: 4.4.5
  • Neo4j-Apoc:4.4.0.3
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue May 3, 2022
…blank value, the attribute value is interpreted as [''] instead of NULL as expected
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue May 6, 2022
…blank value, the attribute value is interpreted as [''] instead of NULL as expected
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue May 6, 2022
…blank value, the attribute value is interpreted as [''] instead of NULL as expected
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue May 6, 2022
…blank value, the attribute value is interpreted as [''] instead of NULL as expected
vga91 added a commit that referenced this issue May 20, 2022
…the attribute value is interpreted as [''] instead of NULL as expected (#2843)
neo4j-oss-build pushed a commit that referenced this issue May 20, 2022
…the attribute value is interpreted as [''] instead of NULL as expected (#2843)
neo4j-oss-build pushed a commit that referenced this issue May 20, 2022
…the attribute value is interpreted as [''] instead of NULL as expected (#2843)
vga91 pushed a commit that referenced this issue May 20, 2022
…the attribute value is interpreted as [''] instead of NULL as expected (#2843) (#2917)
vga91 pushed a commit that referenced this issue May 20, 2022
…the attribute value is interpreted as [''] instead of NULL as expected (#2843) (#2918)
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue May 20, 2022
…blank value, the attribute value is interpreted as [''] instead of NULL as expected (neo4j-contrib#2843)
vga91 added a commit to vga91/neo4j-apoc-procedures that referenced this issue May 27, 2022
…blank value, the attribute value is interpreted as [''] instead of NULL as expected (neo4j-contrib#2843)
vga91 added a commit that referenced this issue May 30, 2022
…the attribute value is interpreted as [''] instead of NULL as expected (#2843)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant