GitHub user winningsix opened a pull request:

    https://github.com/apache/spark/pull/11045

    [SPARK-8321][SQL][WIP] Authorization Support(on all operations not only 
DDL) in Spark Sql

    This PR enables Hive authorization V2(SQL based authorization). It adds 
authorization check after items are resolved. By converting logical plan node 
into ```HivePrivilegeObjects```, we are able to leveraging Hive SQL based 
authorization.
    The PR is marked WIP since it has limited supports on SQL operation and 
doesn't rebase onto the latest upstream. And used for reviews and sharing what 
in mind.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/winningsix/spark SPARK_SQL_AUTHORIZATION

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/11045.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #11045
    
----
commit 9178b4468f44167f44d3a7cb18c34fcd010e3542
Author: Ferdinand Xu <[email protected]>
Date:   2015-12-04T00:53:30Z

    [SPARK-12145][SQL] Command 'Set Role [ADMIN|NONE|ALL]' doesn't work in SQL 
based authorization

commit 7351f835b564b0d8c6340678f938568d8822b752
Author: Ferdinand Xu <[email protected]>
Date:   2016-01-19T02:50:50Z

    Rebase code

commit 8055065ee636939169fd25c88b8db6fe3fc3a934
Author: Ferdinand Xu <[email protected]>
Date:   2016-01-20T01:48:17Z

    Fix import order issue

commit b99768d261ce7f7875603c8bc9c8d18c36f474fa
Author: Ferdinand Xu <[email protected]>
Date:   2016-01-13T19:23:37Z

    Add revoke supports

commit 4a7295199631fa558627bd7fbd68cd0e6f1edf22
Author: Ferdinand Xu <[email protected]>
Date:   2016-02-01T03:37:59Z

    Add SQL based authorization support initial part

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to