Skip to content

Commit d2089b9

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 334c85b commit d2089b9

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
@@ -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)