Skip to content

Conversation

@Yohahaha
Copy link
Contributor

Purpose

Linked issue: close #xxx

Brief change log

As title.

Tests

Catalog: set/remove table properties in org.apache.fluss.spark.SparkCatalogTest

API and Format

Documentation

@Yohahaha
Copy link
Contributor Author

@YannByron @wuchong

@Yohahaha
Copy link
Contributor Author

flink ut failed with Error: The action 'Test' has timed out after 60 minutes.

checkAnswer(sql("SHOW DATABASES"), Row(DEFAULT_DATABASE) :: Nil)
}

test("Catalog: set/remove table properties") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe it'll be nice to have a separate SparkTableChangeTest, which includes all Alter Table tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#2314 (comment)

above comments suggests add all DDL tests into one suite.

@YannByron
Copy link
Contributor

@Yohahaha left some comments here, and I suggest to simplify this title to [spark] support to set/unset table properties.

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

Hi @Yohahaha, I agree with @YannByron's comments. Could you please update the pull request to address them?

Copy link
Member

@wuchong wuchong left a comment

Choose a reason for hiding this comment

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

@Yohahaha Thanks. I added a commit to add a test to verify altering a table.* config

Comment on lines 233 to 236
intercept[ExecutionException] {
sql(
s"ALTER TABLE t SET TBLPROPERTIES('${ConfigOptions.TABLE_DATALAKE_FORMAT.key()}' = 'paimon')")
}.getCause.shouldBe(a[InvalidAlterTableException])
Copy link
Member

Choose a reason for hiding this comment

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

Actually, this can be supported. But you need to enable datalake feature on the cluster.

@wuchong wuchong merged commit 9592d03 into apache:main Jan 26, 2026
6 checks passed
@wuchong wuchong linked an issue Jan 26, 2026 that may be closed by this pull request
2 tasks
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.

[spark] Support ALTER table properites

3 participants