Skip to content

GRANT fails for ALL VIEWS in Iceberg catalog (4.1rc1) #71211

Description

@rad-pat

I'm using a Lakekeeper iceberg catalog via REST, defined as

CREATE EXTERNAL CATALOG lakekeeper PROPERTIES (
  "type" = "iceberg",
  "iceberg.catalog.type" = "rest",
  "iceberg.catalog.uri" = "http://lakekeeper:8181/catalog",
  "iceberg.catalog.warehouse" = "lakekeeper-gcs",
  "iceberg.warehouse" = "gs://bucket/iceberg",
  "iceberg.file-io-impl" = "org.apache.iceberg.gcp.gcs.GCSFileIO",
  "iceberg.gcs.endpoint" = "https://storage.googleapis.com/",
  "enable_iceberg_metadata_cache" = "true"
);

After creating a new database in the catalog, I am trying to grant permissions, but granting for all views is failing

Steps to reproduce the behavior (Required)

SET CATALOG lakekeeper;
CREATE USER "new_user" IDENTIFIED BY 'new_pass';
CREATE DATABASE my_new_db;
GRANT ALL ON DATABASE "my_new_db" TO "new_user";
GRANT ALL ON ALL TABLES IN DATABASE "my_new_db" TO "new_user";
GRANT ALL ON ALL VIEWS IN DATABASE "my_new_db" TO "new_user";

-- DROP DATABASE my_new_db;
-- DROP USER new_user;

Expected behavior (Required)

Expect grant on views to be successful

Real behavior (Required)

Error:
cannot find db: my_new_db.

StarRocks version (Required)

4.1.0-rc01-7c0eb22

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions