Shano Maria Selvan
11/10/2026, 4:28 PMRocky
11/10/2026, 4:28 PMDROP PIPE privilege — and no PIPE-level privilege at all — in the StarRocks privilege model.
What the docs show:
• The grantable privilege list has no PIPE object. The documented object types are SYSTEM, RESOURCE GROUP, RESOURCE, CATALOG, DATABASE, TABLE, VIEW, MATERIALIZED VIEW, FUNCTION, and STORAGE VOLUME. Pipes aren't among them.
• The GRANT syntax has no pipe clause. You can grant { ALTER | DROP | CREATE TABLE | CREATE VIEW | CREATE FUNCTION | CREATE MATERIALIZED VIEW | ALL } on a DATABASE, but database-level DROP is defined as "Deletes a database" — not pipes. There's no ALL PIPES IN DATABASE form either.
• The DROP PIPE doc doesn't state a required privilege. It only documents syntax and that pipes belong to a database (dropping the database drops its pipes, unrecoverably).
So: no documented database-level DROP PIPE privilege exists, and I can't reliably tell you which privilege DROP PIPE actually checks at runtime — the docs simply don't say. I'd rather not guess.
To verify empirically, try it with a role that has only GRANT ALL ON DATABASE <db> versus only table-level privileges, and check sys.grants_to_roles / sys.grants_to_users for what's registered. If you need a definitive answer, the privilege check lives in the FE source (DropPipeStmt in the StarRocks GitHub repo), or ask in the StarRocks community Slack.
References
• sql-reference/sys/grants_to_users.md
• sql-reference/sys/grants_to_roles.md
• sql-reference/information_schema/schema_privileges.md
• sql-reference/information_schema/user_privileges.md
• administration/user_privs/authorization/user_privs.md
• sql-reference/information_schema/column_privileges.md
• administration/user_privs/authorization/privilege_item.mdShano Maria Selvan
11/10/2026, 4:29 PMRocky
11/10/2026, 4:29 PMprivilege_item.md says database ALL means "Has all the above privileges," where "above" only lists ALTER, DROP, CREATE TABLE/VIEW/FUNCTION/MATERIALIZED VIEW. If pipe creation works under GRANT ALL ON DATABASE, then the doc table is simply incomplete (the actual ALL bitmask in FE covers more than the table enumerates).
Two caveats worth being explicit about, since I can't verify them from the docs:
1. CREATE PIPE being covered by ALL does not, by itself, prove DROP PIPE is too. In FE, privileges are individual bits in PrivilegeType.java, and ALL is a composite. If a CREATE PIPE bit exists in that composite, it's plausible a separate DROP PIPE bit exists and is also included — but that's inference, not something the docs state. Please don't quote me as confirming it until you've tested DROP PIPE with a role holding only GRANT ALL ON DATABASE, versus one holding ALL ON ALL TABLES.
2. Practical consequence for role design: because the pipe privilege bits aren't in the documented model, you can't grant "can create pipes but not drop them" via a documented statement — there's no GRANT CREATE PIPE clause in the GRANT syntax. So the granularity appears unavailable regardless of what ALL contains.
To confirm authoritatively: read fe/fe-core/src/main/java/com/starrocks/privilege/PrivilegeType.java (or wherever it now lives) and the privilege check in DropPipeStmt in the StarRocks GitHub repo. If the doc gap is real, a PR against the docs repo to add pipe privileges to privilege_item.md would help — or raise it in the StarRocks community Slack with a maintainer.
References
• administration/user_privs/authorization/privilege_faq.md
• administration/user_privs/authorization/privilege_item.md
• sql-reference/sql-statements/account-management/GRANT.md