Skip to content

Bug: load_edges_from_file Fails to Properly Import Single Property from CSV #2174

Closed

Description

@Munmud

Bug: load_edges_from_file Fails to Import Single Property from CSV

When loading edges from a CSV file using load_edges_from_file, any single property included in the file is not added to the edge’s properties in Apache AGE.

🔧 Command Used

SELECT load_edges_from_file(
  'test_graph',
  'has_city',
  '/home/munmud/Desktop/pg_new_installation/src/dataset/edges_sample.csv'
);

CSV files data

start_id,start_vertex_type,end_id,end_vertex_type,new_field
153,City,3,Country,new_data
154,City,3,Country,new_data

Result

edges

{"id": 1407374883553281, "label": "has_city", "end_id": 1125899906842627, "start_id": 844424930132121, "properties": {}}::edge
(1 row)

✅ Expected Behavior

The edge should include the single property from the CSV in the properties object, like so:

"properties": {"new_field": "new_data"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions