[ 
https://issues.apache.org/jira/browse/CALCITE-5681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17738088#comment-17738088
 ] 

hongyu guo commented on CALCITE-5681:
-------------------------------------

Hi, [~julianhyde]

I have submitted a PR and would appreciate it if you could review it when you 
have some time.

Additionally, I have a question I'd like to discuss. I provided syntax like
{code:java}
GRANT ALL on ALL TABLES IN SCHEMA s to user {code}
{{{}{}}}But I'm not sure if I should recursively handle sub-schemas. Also, this 
syntax doesn't work for tables under the root schema. Could you please help me 
with these questions?

> Support authorization via GRANT and REVOKE DDL commands
> -------------------------------------------------------
>
>                 Key: CALCITE-5681
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5681
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: hongyu guo
>            Priority: Major
>              Labels: pull-request-available
>
> Support authorization via GRANT and REVOKE DDL commands.
> While CALCITE-2194 describes how authorization could be built into the schema 
> (e.g. user1 can see tables table1 and table2), it requires people to create 
> their own Schema objects. This feature would add GRANT and REVOKE commands to 
> the DDL parser in the "server" component.
> The syntax is TBD but would look something like this:
> {code:java}
> GRANT SELECT ON TABLE table1, table2 TO user1;
> REVOKE ALL ON table1 FROM user1; {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to