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

rbac: allow EXPLAIN commands in user_privilege_hack #21778

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

aalexandrov
Copy link
Contributor

Follow-up from #21760

Motivation

Turns out that one bit was missing from #21760 in order to resolve MaterializeInc/database-issues#6160.

  • This PR adds a known-desirable feature.

This does in fact resolve MaterializeInc/database-issues#6160.

Tips for reviewer

I had to change the definition of user_privilege_hack a bit.

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).
  • This PR includes the following user-facing behavior changes:

@aalexandrov aalexandrov requested a review from a team as a code owner September 15, 2023 21:04
@aalexandrov aalexandrov requested review from jkosh44 and removed request for a team September 15, 2023 21:04
@aalexandrov aalexandrov self-assigned this Sep 15, 2023
@aalexandrov aalexandrov added the A-ADAPTER Topics related to the ADAPTER layer label Sep 15, 2023
Copy link
Contributor

@jkosh44 jkosh44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, it might be worth it to add a test so that we don't accidentally break this in the future.

// * SHOW CREATE ... commands. See
// <https://github.com/MaterializeInc/materialize/issues/18027> for
// more details.
// * EXPLAIN PLAN ... EXPLAIN TIMESTAMP and commands. See
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// * EXPLAIN PLAN ... EXPLAIN TIMESTAMP and commands. See
// * EXPLAIN PLAN ... and EXPLAIN TIMESTAMP ... commands. See

@aalexandrov aalexandrov enabled auto-merge (rebase) September 18, 2023 15:49
@aalexandrov aalexandrov merged commit 8b9d65d into MaterializeInc:main Sep 18, 2023
@aalexandrov aalexandrov deleted the issue_20478 branch September 18, 2023 16:31

$ postgres-connect name=mz_support url=postgres://mz_support:materialize@${testdrive.materialize-internal-sql-addr}

> CREATE SOURCE auction_house FROM LOAD GENERATOR AUCTION FOR ALL TABLES WITH (size = '1');
Copy link
Contributor Author

@aalexandrov aalexandrov Sep 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MaterializeInc/testing I just realized that having WITH (size = '1') here might break CI (although it didn't break the CI tests for this PR). Feel free to remove this suffix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ADAPTER Topics related to the ADAPTER layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants