add CreateStage privilege
@@ -47,6 +47,8 @@ pub enum UserPrivilegeType {
CreateRole = 1 << 11,
// Privilege to Grant/Revoke privileges to users or roles
Grant = 1 << 12,
+ // Privilege to Create Stage.
+ CreateStage = 1 << 13,
// TODO: remove this later
Set = 1 << 4,
}
@@ -82,6 +84,7 @@ impl std::fmt::Display for UserPrivilegeType {
UserPrivilegeType::Super => "SUPER",
UserPrivilegeType::CreateUser => "CREATE USER",
UserPrivilegeType::CreateRole => "CREATE ROLE",
+ UserPrivilegeType::CreateStage => "CREATE STAGE",
UserPrivilegeType::Grant => "GRANT",
UserPrivilegeType::Set => "SET",
})
