Zouxxyy commented on code in PR #6329:
URL: https://github.com/apache/paimon/pull/6329#discussion_r2377502989
##########
paimon-spark/paimon-spark-3.4/src/test/scala/org/apache/paimon/spark/sql/CreateAndDeleteTagProcedureTest.scala:
##########
@@ -29,107 +29,109 @@ class CreateAndDeleteTagProcedureTest extends
PaimonSparkTestBase with StreamTes
import testImplicits._
test("Paimon Procedure: create and delete tag") {
- failAfter(streamingTimeout) {
- withTempDir {
- checkpointDir =>
- // define a pk table and test `forEachBatch` api
- spark.sql(s"""
- |CREATE TABLE T (a INT, b STRING)
- |TBLPROPERTIES ('primary-key'='a', 'bucket'='3')
- |""".stripMargin)
- val location = loadTable("T").location().toString
-
- val inputData = MemoryStream[(Int, String)]
- val stream = inputData
- .toDS()
- .toDF("a", "b")
- .writeStream
- .option("checkpointLocation", checkpointDir.getCanonicalPath)
- .foreachBatch {
- (batch: Dataset[Row], _: Long) =>
- batch.write.format("paimon").mode("append").save(location)
+ withSparkSQLConf(("spark.paimon.write.use-v2-write", "false")) {
Review Comment:
When V2 write is enabled by default, it should bypass V2 write instead of
throwing an exception in scenarios that do not support it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]