tvf-enrichment

Automate TVF column comment enrichment and ALTER script generation for Unity Catalog.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/guyman-tr/Databricks_Knowledge --skill tvf-enrichment
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tvf-enrichment
Source: https://github.com/guyman-tr/Databricks_Knowledge/tree/main/.cursor/skills/tvf-enrichment
Command: npx skills add https://github.com/guyman-tr/Databricks_Knowledge --skill tvf-enrichment

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires apply_tvf_col_comments.py, deploy_alter_batch.py, deploy_ddr_enrichment.py, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of enriching Synapse Table-Valued Function (TVF) column comments, streamlining the workflow for creating detailed descriptions of TVF view columns in Unity Catalog.

Core Features & Use Cases

  • TVF Source Analysis: Reads TVF source SQL and generates column descriptions.
  • Wiki Build/Update: Constructs or updates Wiki pages with column information.
  • Tier 1 Source Consultation: Integrates business definitions from various sources.
  • Script Generation: Creates ALTER scripts for TVF and downstream tables.
  • Downstream Propagation: Applies enriched comments to related tables.
  • Use Case: When working with complex TVFs and their related tables, this Skill saves time by automating the process of creating and updating comments based on TVF definitions.

Quick Start

Execute the tvf-enrichment skill for the TVF Function_Population_Funded.

Frequently Asked Questions about tvf-enrichment

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Unity Catalog column comments for Synapse TVFs?

To automate Unity Catalog column comments for Synapse TVFs, you can use a Skill that reads source SQL, generates descriptions, and creates ALTER scripts to propagate comments to materialized views and related tables.

What is the best way to propagate TVF column descriptions to downstream tables?

Propagating TVF column descriptions to downstream tables involves generating ALTER scripts from source SQL analysis and applying them to related tables, ensuring business definitions remain consistent across your data pipeline.

How do I generate ALTER scripts for Synapse TVF views in Unity Catalog?

Generating ALTER scripts for Synapse TVF views requires parsing the TVF source SQL to extract column definitions, then automatically building scripts that update comments for both the materialized views and their downstream dependencies.

Do I need Python to enrich database documentation for Unity Catalog views?

You need Python to enrich database documentation for Unity Catalog views because the automation relies on Python scripts for parsing SQL, manipulating Wiki entries, and generating the necessary ALTER statements.

Can I update Wiki pages with TVF column information automatically?

You can update Wiki pages with TVF column information automatically by reading the source SQL definitions, extracting the column metadata, and constructing or updating Wiki entries with generated descriptions and business definitions.

Why are my Unity Catalog comments missing for materialized TVF views?

Unity Catalog comments are often missing for materialized TVF views because manual enrichment is time-consuming, requiring you to parse SQL definitions and generate ALTER statements to apply descriptions across views and downstream tables.