Skip to content
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

Safe match inserts #67

Merged
merged 4 commits into from
Oct 21, 2022

Conversation

flyingsilverfin
Copy link
Member

What is the goal of this PR?

We validate that match-inserts only match 1 answer before doing inserts. This is disableable with a new flag --allowMultiInserts

What are the changes implemented in this PR?

  • Fix a bunch of tests that relied on toString() for equality checks on TypeQL insert queries
  • Verify that match-inserts only receive 1 match answer before doing inserts. We rewrite match-insert with constraints into a match using IIDs or Labels to do avoid doing the complex match multiple times

@flyingsilverfin flyingsilverfin merged commit 1ffae11 into typedb-osi:master Oct 21, 2022
@flyingsilverfin flyingsilverfin deleted the safe-match-inserts branch October 21, 2022 12:51
@ChandraReddy97
Copy link

@flyingsilverfin change variable name from --allowMultiInserts to --allowMultiInsert

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.

None yet

2 participants