Skip to content

Conversation

kerwin-zk
Copy link
Contributor

@kerwin-zk kerwin-zk commented Sep 24, 2025

Purpose

Disable v2 write in v1 append location unit tests

The operation batch.write.format("paimon").mode("append").save(location) throws an exception when v2 write is enabled. Therefore, it is necessary to explicitly disable v2 write in the relevant unit tests.

Tests

CI

.foreachBatch {
(batch: Dataset[Row], _: Long) =>
batch.write.format("paimon").mode("append").save(location)
withSparkSQLConf(("spark.paimon.write.use-v2-write", "false")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

When V2 write is enabled by default, it should bypass V2 write instead of throwing an exception in scenarios that do not support it.

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