Skip to content

Conversation

@MuhammadTahaNaveed
Copy link
Member

  • A vertex and an edge cannot have the same label within the same graph, so added a check for that.

  • insert_simple_vertex() and insert_simple_edge() functions were not checking for the kind of label. Since a vertex cannot be inserted into a label relation of edge and vice versa, this was causing the server termination. Added a check for that.

  • Added regression tests.

- A vertex and  an edge cannot have the same label within the same
  graph, so added a check for that.

- insert_simple_vertex() and insert_simple_edge() functions were not
  checking for the kind of label. Since a vertex cannot be
  inserted into a label relation of edge and vice versa, this was
  causing the server termination. Added a check for that.

- Added regression tests.
@jrgemignani jrgemignani merged commit 377e1d7 into apache:master Mar 6, 2023
@MuhammadTahaNaveed MuhammadTahaNaveed deleted the issue-733 branch March 7, 2023 05:11
jrgemignani pushed a commit that referenced this pull request Mar 20, 2023
- A vertex and  an edge cannot have the same label within the same
  graph, so added a check for that.

- insert_simple_vertex() and insert_simple_edge() functions were not
  checking for the kind of label. Since a vertex cannot be
  inserted into a label relation of edge and vice versa, this was
  causing the server termination. Added a check for that.

- Added regression tests.
jrgemignani added a commit that referenced this pull request Mar 24, 2023
- A vertex and  an edge cannot have the same label within the same
  graph, so added a check for that.

- insert_simple_vertex() and insert_simple_edge() functions were not
  checking for the kind of label. Since a vertex cannot be
  inserted into a label relation of edge and vice versa, this was
  causing the server termination. Added a check for that.

- Added regression tests.

Conflicts:
	src/backend/utils/graph_generation.c
	src/include/catalog/ag_label.h

Co-authored-by: John Gemignani <jrgemignani@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants