kyuubi icon indicating copy to clipboard operation
kyuubi copied to clipboard

[Improvement] Add Datasource V2 commands to Authz module

Open minyk opened this issue 3 years ago • 3 comments

Code of Conduct

Search before asking

  • [X] I have searched in the issues and found no similar issues.

What would you like to be improved?

PR #2675 introduces some V2 commands, but there are missing commands like CreateV2Table or SetTableProperties. So we add these commands first, then add other third-party commands from Iceberg or Delta.io.

How should we improve?

Add V2 commands to PrivilegesBuilder like V1s. Some minor commands are ignored like V1 cases. Added commands are in these files:

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

minyk avatar May 18 '22 09:05 minyk

I'm almost done: https://github.com/minyk/incubator-kyuubi/commit/2a0367ed2f8ec5ea81b93a03ea70c2fd606bd8cc and trying to make some unit tests for DSv2 commands.

minyk avatar May 23 '22 14:05 minyk

Can I make V2 table(except Iceberg) with a query? I'm trying with parquet like current tests but it makes only v1 tables.

minyk avatar May 23 '22 14:05 minyk

yes

Can I make V2 table(except Iceberg) with a query? I'm trying with parquet like current tests but it makes only v1 tables.

yaooqinn avatar May 25 '22 09:05 yaooqinn

Shall we consider to close this issue?

since closed #3424 [FEATURE] [AUTHZ] Access privilege checks for namespaces and tables of DatasourceV2 may have covered major parts of commands in DataSource v2 for table and namespaces, and #3515 closed for supporting iceberg commands.

bowenliang123 avatar Oct 13 '22 14:10 bowenliang123

@bowenliang123 thx for great work. I think we have no problem to close this issue.

minyk avatar Oct 14 '22 01:10 minyk

thanks @minyk @bowenliang123

yaooqinn avatar Oct 14 '22 01:10 yaooqinn

Thanks. And as for #3424, it covered only major parts of V2 commands for namespaces and tables, ( and it is also the reason that I didn't reuse this issue). So there's still some work to improve support for other v2 commands.

bowenliang123 avatar Oct 14 '22 02:10 bowenliang123