Skip to content

Commit

Permalink
Update CTE limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
jseldess committed Apr 4, 2019
1 parent d43c1a8 commit a7c7e89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v19.1/known-limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,9 @@ Altering the minimum or maximum value of a series does not check the current val

### Using common table expressions in `VALUES` and `UNION` clauses

When the [cost-based optimizer](cost-based-optimizer.html) is disabled (which is the default), or when it does not support a query, a common table expression defined outside of a `VALUES` or `UNION `clause will not be available inside it. For example `...WITH a AS (...) SELECT ... FROM (VALUES(SELECT * FROM a))`.
When the [cost-based optimizer](cost-based-optimizer.html) is disabled, or when it does not support a query, a common table expression defined outside of a `VALUES` or `UNION `clause will not be available inside it. For example `...WITH a AS (...) SELECT ... FROM (VALUES(SELECT * FROM a))`.

This limitation will be lifted when the cost-based optimizer covers all queries. Until then applications can work around this limitation by including the entire CTE query in the place where it is used.
This limitation will be lifted when the cost-based optimizer covers all queries. Until then, applications can work around this limitation by including the entire CTE query in the place where it is used.

[Tracking GitHub Issue](https://github.com/cockroachdb/cockroach/issues/22418)

Expand Down

0 comments on commit a7c7e89

Please sign in to comment.