This is an automated email from the ASF dual-hosted git repository.
mtaha pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/age.git
The following commit(s) were added to refs/heads/master by this push:
new 04bde30c Fix CSV import for edge with one property (#2175)
04bde30c is described below
commit 04bde30c07600381e5aec4468bdaf4e73a7e948f
Author: Moontasir Mahmood <[email protected]>
AuthorDate: Sun May 18 15:56:39 2025 +0600
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.
---
src/backend/utils/load/age_load.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/backend/utils/load/age_load.c
b/src/backend/utils/load/age_load.c
index 815a53ba..41233ff1 100644
--- a/src/backend/utils/load/age_load.c
+++ b/src/backend/utils/load/age_load.c
@@ -157,7 +157,7 @@ agtype* create_agtype_from_list_i(char **header, char
**fields,
agtype_in_state result;
size_t i;
- if (start_index + 1 == fields_len)
+ if (start_index >= fields_len)
{
return create_empty_agtype();
}