privilege, executor: add `SET ROLE` and `CURRENT_ROLE` support #9581
What problem does this PR solve?
support active role and
What is changed and how it works?
Create an graph data structure to find relationship between role and user quickly, which is always update as other privilege tables. It will load
When we need to active some roles for current session, we need to check whether these roles has been granted for current user.
@@ Coverage Diff @@ ## master #9581 +/- ## ================================================ - Coverage 67.1706% 67.1505% -0.0202% ================================================ Files 381 381 Lines 79956 80053 +97 ================================================ + Hits 53707 53756 +49 - Misses 21460 21504 +44 - Partials 4789 4793 +4