Introspection

Introspection is FeatureQL asking about itself: what type a feature has, which version of the language runs, what a persisted feature is made of, how a query will compile, and what its canonical form is. You use these tools while you write a query, not as a separate product. They need nothing beyond FeatureQL.

There are two kinds:

KindWhat it isWhere it goesWhat you get back
In the query TYPEOF(), SQLTYPEOF(), DESCRIBE(), VERSION(), RETURN TRACE, warning acknowledgementsInside a RETURN, next to your featuresColumns of the result
Statements DESCRIBE, SHOW CREATE, SHOW DOCS, SHOW TESTS, SHOW FUNCTIONS, temporary overlaysRun on their own, or as a prefix to a queryA report about the catalog or the query

Explore features walks through SHOW FEATURES on a persisted catalog: finding definitions, filtering, and analyzing what depends on what.

Two statements get more room than the Statements page gives them:

  • More on EXPLAIN : EXPLAIN compiles a statement and returns its plan as JSON, without running it.
  • More on FORMAT : FORMAT rewrites a query into its canonical layout, and FIX migrates it to strict syntax.

The same tools are reachable from Python (client.validate, client.diagnose, client.describe: see Python library ) and from the HTTP and MCP wrappers of the demos repo .

Related