> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SQL execution boundaries

> Where SQL runs: typed relations lowered into each warehouse's dialect, native text in that dialect, and Arrow Flight front ends.

Bijection has no SQL dialect of its own and runs no SQL itself. Every
statement runs in your warehouse, in the warehouse's own dialect.

## Typed relations and native text

Write queries as [typed relations](https://docs.bijection.com/sql/relations.md). `bijection check`
compiles each one through the semantics guest's dialect module for its
receiver or run target. The module renders the statement, and the lock records
its digest and the compiler revision. Write native text
(``receiver.sql({ key, fields })`…` ``) only for what a relation cannot say.
Check parses it with the same dialect module, binds its relations and
classifies every function call. The [dialect catalogs](https://docs.bijection.com/reference/sql) list
what each module admits.

The provider gateway runs only installed statements, matched by digest, and
re-admits each one with the compiler revision the lock records. A lock
compiled by a revision the gateway lacks refuses `CompilerMissing` at deploy.

## Virtual tables and pipelines

A [virtual table](https://docs.bijection.com/sql/application-api.md) compiles a bounded statement for each
pushdown shape and lands small, dated answers per key.

A [pipeline](https://docs.bijection.com/transforms/pipelines.md) reads exact dataset versions and publishes
new ones. Its run target declares a dialect, and check compiles each typed
output's rebuild, step and shadow programs in that dialect's module, then
installs them in the run target by digest. Native SQL and opaque programs on a
run target are the escape: they rebuild on every run unless a contracted
`step:` folds changes forward. The [executor](https://docs.bijection.com/sql/executors.md) owns resource
limits.

## External Flight front ends

A SQL front end can implement its own SQL dialect and use Arrow Flight to read
data exposed by the deployment. Its SQL engine owns parsing, planning and
execution. The deployment still applies the access checks on its Flight reads.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.