Skip to content

Commit 04bde30

Browse files
authored
Fix CSV import for edge with one property (#2175)
- start_index marks where property fields begin. For edges, it's 4. If start_index >= total_fields, create empty properties; otherwise, parse the properties.
1 parent 23f3e87 commit 04bde30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/load/age_load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ agtype* create_agtype_from_list_i(char **header, char **fields,
157157
agtype_in_state result;
158158
size_t i;
159159

160-
if (start_index + 1 == fields_len)
160+
if (start_index >= fields_len)
161161
{
162162
return create_empty_agtype();
163163
}

0 commit comments

Comments
 (0)