I am getting the below error while executing a query after some time, the query is creating a temporary table with 30 days of data from a partition table(physical table).