Skip to content

Fix Issue 1709 - MERGE creates incomplete vertices after the first one (#1721) #1743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 16, 2024

Conversation

jrgemignani
Copy link
Contributor

Fixed issue 1709 where MERGE appears to create incomplete vertices after the first one. However, the real issue was that SET wasn't seeing the newly created tuples from MERGE. This was due to an incorrect cid when performing the tuple insert in MERGE.

The issue was that the cid was being overwritten in the function insert_entity_tuple_cid. Once this was corrected, everything worked fine.

Added regression tests.

Resolved Conflicts:
src/backend/executor/cypher_utils.c

NOTE: This patch has a regression test that is incorrect, noted in
regress/sql/cypher_merge.sql under the issue. This issue needs to
be looked into, but PG11 is basically not supported anymore. So,
the PR was added as it does fix other issues with MERGE, just not
this one particular one.

apache#1721)

Fixed issue 1709 where MERGE appears to create incomplete vertices after
the first one. However, the real issue was that SET wasn't seeing the
newly created tuples from MERGE. This was due to an incorrect cid when
performing the tuple insert in MERGE.

The issue was that the cid was being overwritten in the function
insert_entity_tuple_cid. Once this was corrected, everything worked fine.

Added regression tests.

Resolved Conflicts:
	src/backend/executor/cypher_utils.c

NOTE: This patch has a regression test that is incorrect, noted in
      regress/sql/cypher_merge.sql under the issue. This issue needs to
      be looked into, but PG11 is basically not supported anymore. So,
      the PR was added as it does fix other issues with MERGE, just not
      this one particular one.
@Zainab-Saad Zainab-Saad merged commit 4808d84 into apache:PG11 Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG11 PostgreSQL11
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants