Postgres Row Number Partition By In Snowflake