how to do you flatten object in snowflake