Skip to content

Commit 0890b44

Browse files
committed
fix ToC
1 parent a278107 commit 0890b44

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/nested_CTES.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ SELECT * FROM goku_outer
8585
IMHO, this is excessive and it makes query injection via templating needlessly difficult, especially given that both nested subqueries and sequentially nested CTEs are already supported.
8686

8787

88-
# Reasons (ordered by ease of explanation)
88+
## Reasons (ordered by ease of explanation)
8989

90-
## 1. Everyone else does it
90+
### 1. Everyone else does it
9191

9292
The open-source data engineering ecosystem is growing at a breakneck speed -- especially tools that work with cloud data warehouses (e.g. [Airflow](https://airflow.apache.org/), [dbt](https://www.getdbt.com/), [SQLFluff](https://www.sqlfluff.com/), and [Great Expectations](https://greatexpectations.io/))
9393

@@ -111,7 +111,7 @@ The below table shows which databases support this convention.
111111

112112

113113

114-
### Low-hanging, Syntactic Fruit
114+
### 2. Low-hanging, Syntactic Fruit
115115

116116
Both nested subqueries and sequentially nested CTEs are already supported, so IMO, it isn't a large amount of effor to support this.
117117

@@ -125,7 +125,7 @@ WITH goku_outer AS (
125125
SELECT * FROM goku_outer
126126
```
127127

128-
### more flexibility with SQL templating engines
128+
### 3. more flexibility with SQL templating engines
129129

130130
Quote from Jacob Matson ([@matsonj](https://github.com/matsonj)):
131131

@@ -170,4 +170,4 @@ In fact, the magic of dbt is just Jinja templating. dbt goes one step further an
170170

171171
If TSQL could allow wrapping arbitrary SELECT queries within a CTE, it would have the following effects on dbt custom adapter maintenance:
172172
- dbt-sqlserver and dbt-synapse get the benefits of [ephemeral](https://docs.getdbt.com/docs/building-a-dbt-project/building-models/materializations#ephemeral) materializations and dbt tests without extra work
173-
- dbt-msft users can take advantage of community-supported adapters with more confidence (many package maintainers make heavy use of CTE-query-wrapping)
173+
- dbt-msft users can take advantage of community-supported adapters with more confidence (many package maintainers make heavy use of CTE-query-wrapping)****

0 commit comments

Comments
 (0)