What problem does it solve?
Warehouse teams accumulate historic SQL query logs, but turning raw per-table usage statistics into structured, trustworthy evidence for a semantic layer requires careful interpretation and identifier verification. This Skill standardizes that conversion so downstream schema projection receives consistent, typed table usage evidence.
Core Features & Use Cases
- Usage Narrative Generation: Reads a staged
tables/<schema>.<name>.json file from the historic-sql adapter and produces a concise narrative describing how the table is queried.
- Typed Evidence Emission: Calls
emit_historic_sql_evidence exactly once with a table_usage payload matching tableUsageOutputSchema, including frequency tier, common filters, group-bys, and joins.
- Identifier Verification: Verifies schema.table identifiers via
entity_details and sql_execution probes before referencing them, preventing fictional tables from entering the knowledge base.
- Use Case: A memory agent processing a WorkUnit for
public.orders uses this Skill to summarize that the table is heavily filtered by status and joined to customers, emitting one validated evidence object for deterministic schema projection.
Quick Start
Ask the agent to digest the staged historic SQL table file for a given schema.table and emit its table usage evidence.