Skip to content

Commit

Permalink
Update projections-examples.md
Browse files Browse the repository at this point in the history
columns expression
  • Loading branch information
BorisTyshkevich authored Sep 20, 2024
1 parent 4f60b7c commit 93334bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ description: >
- Projection is used only if it is cheaper to read from it than from the table.
- Projection should be materialized. Verify that all parts have the needed projection by looking into the system.parts, projections column.
- If there are many projections per table, the analyzer can select any of them. If you think that some is better use settings `preferred_optimize_projection_name` or `force_optimize_projection_name`
- The query should use only the columns defined in the projection with the same functions and modifiers. Use column aliases to make the query the very same as in the projection definition:
- The query should use only the columns expression (not just columns!) defined in the projection with the same functions and modifiers. Use column aliases to make the query the very same as in the projection definition:

```sql
CREATE TABLE test
Expand Down

0 comments on commit 93334bb

Please sign in to comment.