What problem does it solve?
Historic SQL query logs contain valuable recurring analytical patterns, but manually mining them for cross-table business intents is slow and error-prone. This Skill automates the detection of durable multi-table query patterns so they can be projected into wiki documentation and semantic-layer definitions.
Core Features & Use Cases
- Pattern Mining from Shards: Reads bounded
patterns-input shard files from the historic-sql adapter and identifies recurring analytical intents spanning at least two tables.
- Identifier Verification: Verifies every schema, table, and column reference via entity_details and optional SQL probes before emitting evidence, preventing fictional identifiers from reaching documentation.
- Typed Evidence Emission: Emits structured
pattern evidence objects (slug, title, narrative, definitionSql, tablesInvolved, slRefs) conforming to a strict output schema for deterministic wiki projection.
- Use Case: A data team ingesting warehouse query history wants to document how analysts repeatedly join orders and customers tables for lifecycle analysis; this Skill extracts that intent as verified pattern evidence.
Quick Start
Analyze the historic SQL pattern shard in this WorkUnit and emit verified cross-table pattern evidence for each recurring analytical intent.