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

PHOENIX-4555 Only mark view as updatable if rows cannot overlap with other updatable views #1844

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jinggou
Copy link
Contributor

@jinggou jinggou commented Mar 4, 2024

Jira: PHOENIX-4555

Restrict view to be UPDATABLE if the view specification:

  1. uses only the PK columns
  2. starts from the first PK column if the parent table is not multi tenant;
otherwise, starts from the second PK column (the first column will be TENANT_ID)
  3. PK columns should be in the order they are defined
  4. uses the same set of PK columns as its sibling views' specification

Otherwise, mark the view as READ_ONLY.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant