I would like to subtract a number from the hive variable passed. For example:
SET hiveconf:window_size = 12
SELECT id , max(marks) OVER(ORDER BY Date_time ROWS BETWEEN ${hiveconf:window_size}-1 PRECEDING AND CURRENT ROW) from Students;
But ${hiveconf:window_size}-1
in window function is giving error.
Can anyone provide any suggestions on this.