The Issue was on the HASH_AGG(*). When Snowflake use CREATE OR REPLACE function, columns are not necessary created with the same order.
Change * by all columns names resolve the issue.