Skip to content

quoted string saved as "inf" #14

@m4g005

Description

@m4g005

I have a csv file with:

"hash_value","hash_fail"
"75f0f686118f3771c2cdec71a1cfc0c8","65e1337962"

in it.

When this gets bulk inserted, the hash_fail value is stored as string "inf":

GRAPH.QUERY testme "MATCH (h:hash_fail) RETURN h"
1) 1) "h"
2) 1) 1) 1) 1) "id"
            2) (integer) 0
         2) 1) "labels"
            2) 1) "hash_fail"
         3) 1) "properties"
            2) 1) 1) "hash_value"
                  2) "75f0f686118f3771c2cdec71a1cfc0c8"
               2) 1) "hash_fail"
                  2) "inf"

The only time it has imported correctly is by setting the quote level to 3.

(redisgraph-bulk-loader) ➜  redisgraph-bulk-loader git:(master) ✗ redis-cli -p 6381 GRAPH.DELETE testme
"Graph removed, internal execution time: 0.022300 milliseconds"
(redisgraph-bulk-loader) ➜  redisgraph-bulk-loader git:(master) ✗ python bulk_insert.py testme -h redis-graph -p 6381 -n "hash_fail.csv" -q 3
1 nodes created with label 'hash_fail'
Construction of graph 'testme' complete: 1 nodes created, 0 relations created in 0.023432 seconds
(redisgraph-bulk-loader) ➜  redisgraph-bulk-loader git:(master) ✗ redis-cli -p 6381 GRAPH.QUERY testme "MATCH (h:hash_fail) RETURN h"
1) 1) "h"
2) 1) 1) 1) 1) "id"
            2) (integer) 0
         2) 1) "labels"
            2) 1) "hash_fail"
         3) 1) "properties"
            2) 1) 1) "\"hash_value\""
                  2) "\"75f0f686118f3771c2cdec71a1cfc0c8\""
               2) 1) "\"hash_fail\""
                  2) "\"65e1337962\""
3) 1) "Query internal execution time: 0.540700 milliseconds"
(redisgraph-bulk-loader) ➜  redisgraph-bulk-loader git:(master) ✗ redis-cli -p 6381 GRAPH.DELETE testme

Every other variation of the -q parameter stores the hash_fail value as "inf"

Also note: I've only found that the specific value above (ie., hash_fail) fails. Other values, e.g. "d18f044cfd0d9c9a8a7326ddda030106","b8265e95a6" work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions