Skip to content

API Reference parrot.semantic.engines.native

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.semantic.engines.native

View source

Sole native SQL AST compiler; no warehouse connection or engine dispatch.

Alias CompiledQuery

Re-exported from parrot.semantic.models.CompiledQuery.

Alias FilterGroup

Re-exported from parrot.semantic.models.FilterGroup.

Alias FilterLeaf

Re-exported from parrot.semantic.models.FilterLeaf.

Alias Grain

Re-exported from parrot.semantic.models.Grain.

Alias LoadedModel

Re-exported from parrot.semantic.loader.LoadedModel.

Alias Metric

Re-exported from parrot.semantic.model.Metric.

Attribute NATIVE_AGGREGATIONS

Class NativeCompiler

Compile the closed semantic grammar to deterministic dialect SQL.

Instances hold only the immutable loaded model; every compilation builds its own plan.

Parameter Type Default Description
model LoadedModel

Method NativeCompiler.dependencies

Return qualified metric names the metric depends on, dependencies first.

dependencies(metric: str) -> tuple[str, ...]

Parameter Type Default Description
metric str A bare root-model or model.metric qualified metric name.

Returns: tuple[str, ...] — Deterministic post-order of qualified names ending with the metric itself.

Method NativeCompiler.compile

Build SELECT with typed filters, physical provenance and deterministic keys.

compile(query: SemanticQuery, dialect: str) -> CompiledQuery

Parameter Type Default Description
query SemanticQuery
dialect str

Returns: CompiledQuery

Alias Relationship

Re-exported from parrot.semantic.model.Relationship.

Alias SemanticModel

Re-exported from parrot.semantic.model.SemanticModel.

Alias SemanticQuery

Re-exported from parrot.semantic.models.SemanticQuery.

Alias SemanticValidationError

Re-exported from parrot.semantic.errors.SemanticValidationError.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally