whats the chances of invalidating the warranty if i do this, i know they wont know that ive changed the oil but will they know ive changed the filter.
Ah, but they will. In the case of part or complete engine failure the dealer will be asked to forward a sample of the engine oil for analysis and if it is discovered that non-approved engine oil has been used this will almost certainly be sufficient grounds to nullify your warranty.
Additionally, if changing the oil yourself then you shall require the correct equipment to reset the engine management unit so that it knows that an oil change has taken place. Would this later be known to Mazda I don't know but I would suspect that if the unit records having an oil change say 5,000 kilometres earlier but the records held by Mazda (via the dealer) indicate 10,000 then I would guess so.
Personally I believe 20,000km oil changes to be excessively long and have mine changed at approximately the 10,000km mark which usually coincides with a long caravan tug anyway.
All things are possible of course and anything the owner does during the warranty period may or may not incur the wrath of Mazda and so nullify the warranty as said. It's your choice.