Understanding the Snowflake Query Optimizer