There is still some little confusion between theory and practice.
CIC website states that the system will not ask you for PCC as it was not 6 full months in a row, although many have said that there was a recent update to the way the system handles it. Meaning, they removed the "in a row" requirement.
Say for example you were in Dubai for 3 months, then back to India for 2 months, and then again back to Dubai for 3 months, it counts as a total of 6 months spent in Dubai.
But anyway, you particular case is a perfect example of
"Example C" in the official link below. Extract here in red.
https://www.canada.ca/en/immigration-refugees-citizenship/services/immigrate-canada/express-entry/apply-permanent-residence/police-certificates.html
*********From CIC Website: Example C*********
Example C: Several short stays in another country
Lailah studied in Spain between 2014 and 2017, for several 4-month study periods but she did not stay there for 6 months or more
in a row. The system will not ask for a police certificate, but an officer may ask for one from Spain after she submits her application. To avoid delays, Lailah could ask for a police certificate from Spain and submit it with her application.
*********From CIC Website: Example C*********
My suggestion would be to just get one and submit it with your application.
99.9% chance they will ask for it, as it's quite a substantial amount of time spent in Dubai. Here is how to get one from the UAE:
https://www.canada.ca/en/immigration-refugees-citizenship/services/application/medical-police/police-certificates/how/united-arab-emirates.html
Cheers.