Skip to content

[PROTOTYPE][DO_NOT_MERGE] Streaming write schema evolution#55279

Draft
johanl-db wants to merge 2 commits intoapache:masterfrom
johanl-db:prototype-streaming-write-schema-evolution
Draft

[PROTOTYPE][DO_NOT_MERGE] Streaming write schema evolution#55279
johanl-db wants to merge 2 commits intoapache:masterfrom
johanl-db:prototype-streaming-write-schema-evolution

Conversation

@johanl-db
Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Path-finding: attempting to automatically evolve the schema of the sink during streaming writes when the sink table reports capability AUTOMATIC_SCHEMA_EVOLUTION

This is a crude prototype and doesn't consider implications that evolving the sink schema may have on streaming semantics.

There's also no user-surface to enable schema evolution on a stream today. Delta uses for example .option("mergeSchema", "true"), but Spark itself doesn't provide an a user surface for schema evolution. In this change, we assume that a connector implementation will intercept the WriteToMicroBatchDataSource node to enable schema evolution on it as needed

@dongjoon-hyun dongjoon-hyun marked this pull request as draft April 10, 2026 12:11
Copy link
Copy Markdown
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @johanl-db . FYI, GitHub provides Draft feature to help your case. To prevent merging or reviewing systematically, the Apache Spark community recommend to use the standard Draft PR.

[PROTOTYPE][DO_NOT_MERGE] Streaming write schema evolution

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