Cannot use CTE field in join
Open
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 145
- PR merge metrics
- No merged PRs in 30d
Description
A query like
```SQL
WITH product AS (
SELECT product_id FROM source_products
)
SELECT product.product_id, SUM(orders.amount) FROM product
LEFT JOIN orders ON product.product_id = orders.product_id
```
will yield the error "Invalid Field specified in join : product.product_id"
Contributor guide
Assessment
This issue has not been assessed yet.