Skip to content

[spark] Reject SET LOCATION for Paimon tables#8540

Open
huangxiaopingRD wants to merge 1 commit into
apache:masterfrom
huangxiaopingRD:forbid-paimon-set-location
Open

[spark] Reject SET LOCATION for Paimon tables#8540
huangxiaopingRD wants to merge 1 commit into
apache:masterfrom
huangxiaopingRD:forbid-paimon-set-location

Conversation

@huangxiaopingRD

Copy link
Copy Markdown
Contributor

Purpose

Reject ALTER TABLE ... SET LOCATION for Paimon tables at Spark analysis time instead of letting the command silently pass through.
This change adds a rule-level check in PaimonAnalysis for SetTableLocation when the resolved target is a Paimon SparkTable, and throws a clear unsupported-operation error:
ALTER TABLE ... SET LOCATION is not supported for Paimon tables.

Tests

Added unit coverage in:
paimon-spark/paimon-spark-ut/src/test/scala/org/apache/paimon/spark/sql/DDLTestBase.scala

@huangxiaopingRD huangxiaopingRD force-pushed the forbid-paimon-set-location branch from ab714c8 to 4db27d4 Compare July 10, 2026 04:08
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.

1 participant