Skip to content

Fix issue #733 - create_complete_graph() terminates the server - #734

Merged
jrgemignani merged 1 commit into
apache:masterfrom
MuhammadTahaNaveed:issue-733
Mar 6, 2023
Merged

Fix issue #733 - create_complete_graph() terminates the server#734
jrgemignani merged 1 commit into
apache:masterfrom
MuhammadTahaNaveed:issue-733

Conversation

@MuhammadTahaNaveed

Copy link
Copy Markdown
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:masterMar 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 freeto 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

@MuhammadTahaNaveed@jrgemignani