diff --git a/website/docs/guides/mesh-qs.md b/website/docs/guides/mesh-qs.md index 87fae1b58e0..fe581471da3 100644 --- a/website/docs/guides/mesh-qs.md +++ b/website/docs/guides/mesh-qs.md @@ -460,10 +460,10 @@ models: ### Set up model versions In this section, you will set up model versions by the Data Analytics team as they upgrade the `fct_orders` model while offering backward compatibility and a migration notice to the downstream Finance team. -1. Rename the existing model file from` models/core/fct_orders.sql` to `models/core/fct_orders_v1.sql`. +1. Rename the existing model file from `models/core/fct_orders.sql` to `models/core/fct_orders_v1.sql`. 2. Create a new file `models/core/fct_orders_v2.sql` and adjust the schema: - - Comment out `orders.status` - - Add a new field, `is_return` to indicate if an order was returned. + - Comment out `o.status` in the `final` CTE. + - Add a new field, `case when o.status = 'returned' then true else false end as is_return` to indicate if an order was returned. 3. Then, add the following to your `models/core/core.yml` file: - The `is_return` column - The two model `versions`