Hi Rehan,
if a view has a structured privilege check can be determined out of system view VIEWS. You can use statement
select * from views where is_column_view = 'TRUE' and has_structured_privilege_check = 'TRUE'
for that. But that give no information if it classical or sql analytic privileges are checked.
I didn't find any view or table where that information is stored. The only (very ugly) way if found is to determine it via views xml itself.
select * from "_SYS_REPO"."ACTIVE_OBJECT" where object_suffix = 'calculationview' and cdata like '%applyPrivilegeType="SQL_ANALYTIC_PRIVILEGE"%'
applyPrivilegeType="SQL_ANALYTIC_PRIVILEGE" means SQL Analytic Privilege
applyPrivilegeType="ANALYTIC_PRIVILEGE" means Classic Analytic Privilege
So no real solution for a production scenario, but usable for some adhoc queries in the console. Consider that this will not work anymore if you use XS Advanced for modeling.
Regards,
Florian