Strangely I can save and run this scheduled query no problem
DECLARE runTimeVariable TIMESTAMP DEFAULT @run_time;
SELECT * FROM
`myTable`
WHERE insert_timestamp > timestamp_sub(runTimeVariable, INTERVAL 7 DAY)
But I try to run
DECLARE runTimeVariable TIMESTAMP DEFAULT @run_time;
SELECT * FROM
`myTable`
WHERE insert_timestamp > timestamp_sub(runTimeVariable, INTERVAL 7 DAY)
AND x > 0
or any other AND clause then I can't save it, I get
Query error: Cannot query over table ... without a filter over column(s) ... that can be used for partition elimination at
Thanks!