SYMPTOM
In Strategy Secure Enterprise 10.x, the following error message occurs while using Windowing functions in Strategy reports that connect to a Hive data warehouse:
Error type: Odbc error. Odbc operation attempted: SQLExecDirect. [S1000:80: on HSTMT] [Strategy][HiveODBC] (80) Syntax or semantic analysis error thrown in server while execurint query. Error message from server: Error while compiling statement: FAILED: SemanticException Failed to breakup Windowing invocations into Groups. At least 1 group must only depend on input columns. Also check for circular dependencies.
Refer to the sample report below:

The SQL is below:
select a12.region_id region_id, rank () over( order by sum(a11.tot_dollar_sales) desc) WJXBFS1 from labstuto.city_ctr_sls a11 join labstuto.lu_call_ctr a12 on (a11.call_ctr_id = a12.call_ctr_id) where a12.region_id in (1) group by a12.region_id

The report executes successfully as shown below:

Refer to the sample report below:

The SQL is below:
select a12.quarter_id quarter_id, max(a13.quarter_desc) quarter_desc, a11.region_id region_id, max(a14.region_name) region_name, rank() over ( partition by a12.quarter_id order by sum(a11.tot_dollar_sales) asc, a11.region_id asc ) WJXBFS1 from labstuto.state_region_mnth_sls a11 join labstuto.lu_month a12 on (a11.month_id = a12.month_id) join labstuto.lu_quarter a13 on (a12.quarter_id = a13.quarter_id) join labstuto.lu_region a14 on (a11.region_id = a14.region_id) group by a12.quarter_id, a11.region_id

If the user doesn't want the 'SumTotalDollarSales' column to be displayed as part of the report, just right-click on the column and select 'remove from grid' as shown below:

The report executes successfully as shown below:
