Skip to content

Commit ca198da

Browse files
MunmudMuhammadTahaNaveed
authored andcommitted
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 172f093 commit ca198da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/backend/utils/load/age_load.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ agtype* create_agtype_from_list_i(char **header, char **fields,
176176
agtype_in_state result;
177177
size_t i;
178178

179-
if (start_index + 1 == fields_len)
179+
if (start_index >= fields_len)
180180
{
181181
return create_empty_agtype();
182182
}

0 commit comments

Comments
 (0)