You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| -R | --relations-with-type TEXT | Relationship Type followed by path to relationship CSV file |
50
50
| -o | --separator CHAR | Field token separator in CSV files (default: comma) |
51
51
| -d | --enforce-schema | Requires each cell to adhere to the schema defined in the CSV header |
52
+
| -i | --id-type TEXT | The data type of unique node ID properties (either STRING or INTEGER) |
52
53
| -s | --skip-invalid-nodes | Skip nodes that reuse previously defined IDs instead of exiting with an error |
53
54
| -e | --skip-invalid-edges | Skip edges that use invalid IDs for endpoints instead of exiting with an error |
54
55
| -q | --quote INT | The quoting format used in the CSV file. QUOTE_MINIMAL=0,QUOTE_ALL=1,QUOTE_NONNUMERIC=2,QUOTE_NONE=3 |
@@ -146,7 +147,7 @@ The accepted data types are:
146
147
| STRING | A string value | Yes |
147
148
| ARRAY | An array value | Yes |
148
149
149
-
If an `ID` column has a name string, the value will be added to each node as a property. Otherwise, it is internal to the bulk loader operation and will not appear in the graph. `START_ID` and `END_ID` columns will never be added as properties.
150
+
If an `ID` column has a name string, the value will be added to each node as a property. This property will be a string by default, though it may be switched to integer using the `--id-type` argument. If the name string is not provided, the ID is internal to the bulk loader operation and will not appear in the graph. `START_ID` and `END_ID` columns will never be added as properties.
150
151
151
152
### ID Namespaces
152
153
Typically, node identifiers need to be unique across all input CSVs. When using an input schema, it is (optionally) possible to create ID namespaces, and the identifier only needs to be unique across its namespace. This is particularly useful when each input CSV has primary keys which overlap with others.
Copy file name to clipboardExpand all lines: redisgraph_bulk_loader/bulk_insert.py
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,7 @@ def process_entities(entities):
60
60
@click.option('--separator', '-o', default=',', help='Field token separator in csv file')
61
61
# Schema options
62
62
@click.option('--enforce-schema', '-d', default=False, is_flag=True, help='Enforce the schema described in CSV header rows')
63
+
@click.option('--id-type', '-i', default='STRING', help='The data type of unique node ID properties (either STRING or INTEGER)')
63
64
@click.option('--skip-invalid-nodes', '-s', default=False, is_flag=True, help='ignore nodes that use previously defined IDs')
64
65
@click.option('--skip-invalid-edges', '-e', default=False, is_flag=True, help='ignore invalid edges, print an error message and continue loading (True), or stop loading after an edge loading failure (False)')
65
66
@click.option('--quote', '-q', default=0, help='the quoting format used in the CSV file. QUOTE_MINIMAL=0,QUOTE_ALL=1,QUOTE_NONNUMERIC=2,QUOTE_NONE=3')
@@ -70,7 +71,7 @@ def process_entities(entities):
70
71
@click.option('--max-token-size', '-t', default=64, help='max size of each token in megabytes (default 64, max 512)')
71
72
@click.option('--index', '-i', multiple=True, help='Label:Propery on which to create an index')
72
73
@click.option('--full-text-index', '-f', multiple=True, help='Label:Propery on which to create an full text search index')
0 commit comments