-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Pass properties when checking access for CREATE SCHEMA #15153
Pass properties when checking access for CREATE SCHEMA #15153
Conversation
e8c66b1
to
19ac128
Compare
core/trino-main/src/main/java/io/trino/security/InjectedConnectorAccessControl.java
Outdated
Show resolved
Hide resolved
core/trino-spi/src/main/java/io/trino/spi/security/SystemAccessControl.java
Show resolved
Hide resolved
core/trino-spi/src/main/java/io/trino/spi/security/SystemAccessControl.java
Outdated
Show resolved
Hide resolved
19ac128
to
b01b550
Compare
CI hit: #14814 |
Do we need release notes for this? |
No user visible impact. It changed the SPI though:
|
*/ | ||
default void checkCanCreateSchema(SystemSecurityContext context, CatalogSchemaName schema, Map<String, Object> properties) | ||
{ | ||
denyCreateSchema(schema.toString()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not delegate to checkCanCreateSchema(context, schema)
?
that would make the change backward-compatible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
proposing #15618 to address this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right. That was a mistake.
Incorporate following changes Pass properties when checking access for CREATE SCHEMA trinodb/trino#15153 trinodb/trino@e16620f Support ALTER COLUMN SET DATA TYPE statement trinodb/trino#11608 trinodb/trino@ef94c0d
Incorporate following changes Pass properties when checking access for CREATE SCHEMA trinodb/trino#15153 trinodb/trino@e16620f Support ALTER COLUMN SET DATA TYPE statement trinodb/trino#11608 trinodb/trino@ef94c0d
Pass properties when checking access for CREATE SCHEMA