The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
docs - transform inspector (#71188)
Jeff Bruemmerbc80f935a2be
diff --git a/docs/data-studio/images/drill-lens.png b/docs/data-studio/images/drill-lens.pngnew file mode 100644index 00000000000..b7cff8fe0b3Binary files /dev/null and b/docs/data-studio/images/drill-lens.png differdiff --git a/docs/data-studio/images/join-problem.png b/docs/data-studio/images/join-problem.pngnew file mode 100644index 00000000000..ca44168bc3eBinary files /dev/null and b/docs/data-studio/images/join-problem.png differdiff --git a/docs/data-studio/images/transform-inspector-analysis-warning.png b/docs/data-studio/images/transform-inspector-analysis-warning.pngnew file mode 100644index 00000000000..b434666f465Binary files /dev/null and b/docs/data-studio/images/transform-inspector-analysis-warning.png differdiff --git a/docs/data-studio/images/transform-inspector.png b/docs/data-studio/images/transform-inspector.pngnew file mode 100644index 00000000000..57b3f57c274Binary files /dev/null and b/docs/data-studio/images/transform-inspector.png differdiff --git a/docs/data-studio/transforms/transform-inspector.md b/docs/data-studio/transforms/transform-inspector.mdnew file mode 100644index 00000000000..24b76950cd9--- /dev/null+++ b/docs/data-studio/transforms/transform-inspector.md@@ -0,0 +1,65 @@+---+title: Transform inspector+summary: Analyze how your transforms process data by inspecting input and output shapes, join behavior, and column distributions.+---++# Transform inspector++> Transform inspector requires the **Advanced transforms** add-on.++_Data Studio > Transforms > [transform name] > Inspect_++The transform inspector gives you a diagnostic view of your transforms. Instead of writing your own SQL to check row counts, join match rates, or column distributions, you can open the **Inspect** tab and let Metabase analyze your transform's inputs and outputs for you. The inspector is especially useful for catching data quality issues (like unmatched rows in joins) before they cause problems downstream.++++To inspect a transform, you need to run the transform at least once, since the inspector analyzes actual data in the target and source tables. If you change the transform definition, you'll need to re-run the transform to refresh the inspector's analysis.++## Lenses++The inspector organizes its analysis into different lenses (displayed as tabs). Each lens focuses on specific aspects of your transform. Lenses other than the Data Summary only appear when relevant.++- [Data summary](#data-summary)+- [Column distributions](#column-distributions)+- [Join analysis](#join-analysis)+- [Drill lenses](#drill-lenses)++### Data summary++Data summary gives you a quick snapshot of the transform's input and output tables:++- **Input and output tables**: table name, row count, column count.+- **Field-level stats**: data type, distinct count, nil percentage (number of null values), range, and averages.++### Column distributions++The Column distributions lens visualizes how data distributions change through the transform. This lens can help you spot unexpected filtering or aggregation effects. This lens is only available when columns match between input and output tables (so you may not see it for transforms that aggregate data).++The Column distributions lens can be slow on large datasets because it computes distribution stats for every matched column.++### Join analysis++++Available when the transform includes joins. Shows how well your joins match across tables:++- **Join name**, **output rows**, **matched rows**, and **table rows** for each join.+- Shows a warning when more than 20% of rows are unmatched. The warning appears inline in the join analysis results. You can click to open a [drill lens](#drill-lenses) to see the unmatched rows.++### Drill lenses++++Drill lenses are dynamic tabs that appear based on analysis results. For example, if a join analysis finds unmatched rows, a tab like "Unmatched Rows - Join 1" will appear.++## Some lenses can take a while to load++++Inspector lenses run queries against your database, and some lenses can take longer than others. A clock icon on a lens tab means the lens could run a long query, depending on how many rows of data you're working with. For large datasets, consider running these lenses during off-peak hours.++## Further reading++- [Transforms overview](transforms-overview.md)+- [Query-based transforms](query-transforms.md)+- [Python transforms](python-transforms.md)diff --git a/docs/data-studio/transforms/transforms-overview.md b/docs/data-studio/transforms/transforms-overview.mdindex 2a2c1007363..0f34c31712e 100644--- a/docs/data-studio/transforms/transforms-overview.md+++ b/docs/data-studio/transforms/transforms-overview.md@@ -20,6 +20,7 @@ You'll write a query or a Python script in Metabase, a transform will run this q- You assign tags (e.g., daily, hourly) to group your transforms.- A job runs on a schedule (e.g., every day at midnight) and executes all transforms that have been assigned a specific tag.- Each execution of a transform is a **run**. A run replaces the target table with fresh results. You can review the history of runs to monitor their success or failure.+- You can **inspect** a transform to analyze its data flow, join behavior, and column distributions. See [Transform inspector](transform-inspector.md).## Databases that support transforms@@ -177,6 +178,12 @@ You can see the time and status of the latest transform run on the transform's pFor Python transforms, you'll also see the transform's execution logs.+## Inspect a transform++_Data Studio > Transforms > [transform name] > Inspect_++The [transform inspector](./transform-inspector.md) lets you poke at the input and outputs of your transform.+## Transform dependencies{% include plans-blockquote.html feature="Transform dependencies" is_plural=true%}