Ingest
Import your dbt and LookML projects into the Semantic Catalog
Ingesting is the first step. anfra ingest imports your project's context into the Semantic Catalog, and search and lineage then read from the catalog, not from your files:
anfra ingestRun it again whenever your AML or a context source changes, so the catalog stays up to date.
Context sources
List dbt and LookML projects as context sources in .anfra/context_sources.yml
# .anfra/context_sources.yml
sources:
- name: dbt_main
type: dbt
local: { path: ../analytics-dbt } # the dbt project
- name: looker
type: lookml
local: { path: ../looker-project } # the LookML project directoryEach source has:
| Field | Description |
|---|---|
name | A unique name for the source. |
type | The kind of project: dbt or lookml. |
local.path | Path to the project folder, relative to the directory where you run anfra. |
Run anfra ingest after you add a source.
dbt
anfra reads the compiled manifest at target/manifest.json inside the dbt project, not the model files. Run dbt compile (or any command that builds the manifest, such as dbt run) before anfra ingest so the manifest is present and up to date.
LookML
Point path at the LookML project directory. anfra reads its LookML files directly.