Skip to content

[spark] Preserve table options for RTAS saveAsTable overwrite.#7776

Open
Stephen0421 wants to merge 1 commit intoapache:masterfrom
Stephen0421:PAIMON-7687
Open

[spark] Preserve table options for RTAS saveAsTable overwrite.#7776
Stephen0421 wants to merge 1 commit intoapache:masterfrom
Stephen0421:PAIMON-7687

Conversation

@Stephen0421
Copy link
Copy Markdown
Contributor

Purpose

fix #7687

Route ReplaceTableAsSelect through the Paimon CTAS strategy so table
options such as primary-key are split from write options and applied to
the created table. Adapt RTAS cache invalidation across Spark 3.5 and
Spark 4.x callback signatures.

Tests

Add DataFrameWrite tests for overwrite saveAsTable preserving primary
keys and table options.

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.

[Bug] Saving dataframe in overwrite mode using Spark doesn't set primary key

1 participant