The Canada Revenue Agency decides whether you've left Canada for tax purposes based on your residential ties, not your plane ticket. The significant ties are a home in Canada, a spouse or common-law partner in Canada, and dependants in Canada. Secondary ties — bank accounts, driver's licences, health coverage, memberships, personal property — matter as a pattern.
The half-in, half-out setup is the classic trap: house kept "just in case," provincial health card active, spouse still in Canada most of the year. If your ties say you never really left, the CRA can treat you as a factual resident who owes Canadian tax on worldwide income, no matter how many months you spent in the sun.