Skip to content

explain: add a schema option for dataflow exports - #39620

Draft
antiguru wants to merge 1 commit into
mv-schema/constraint-lookaheadfrom
mv-schema/explain-schema
Draft

antiguru wants to merge 1 commit into
mv-schema/constraint-lookaheadfrom
mv-schema/explain-schema

Conversation

@antiguru

@antiguru antiguru commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

EXPLAIN ... WITH (schema) prints the schema of each dataflow export, for materialized views and subscribes, as column definitions: names, types, nullability, and the unique keys known for the export. Keys over nullable columns print as UNIQUE NULLS NOT DISTINCT, which matches how RelationDesc keys treat NULL.

The option is not feature-gated, since it is also useful for inspecting inferred schemas. It is the way to see what to write when declaring a schema with the declared schemas later in this stack. Design: #39596.

🤖 Generated with Claude Code

`EXPLAIN ... WITH (schema)` prints the schema of each dataflow export,
for materialized views and subscribes, as column definitions:
names, types, nullability, and the unique keys known for the export.
Keys over nullable columns print as `UNIQUE NULLS NOT DISTINCT`, which
matches how `RelationDesc` keys treat NULL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@antiguru
antiguru added this pull request to stack #39622 October 7, 2026 07:04
@antiguru antiguru changed the title mv schema/explain schema explain: add a schema option for dataflow exports Oct 7, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants