March 2009
Intermediate to advanced
784 pages
30h 30m
English
The basic compilation “pipeline” for a single query appears in Figure 8-1.

Figure 8-1. Query processor pipeline
When a query is compiled, the SQL statement is first parsed into an equivalent tree representation. For queries with valid SQL syntax, the next stage performs a series of validation steps on the query, generally called binding, where the columns and tables in the tree are compared to database metadata to make sure that those columns and tables exist and are visible to the current user. This stage also performs semantic checks on the query to make sure it is valid, such as making sure that the columns bound to a GROUP BY operation ...
Read now
Unlock full access