Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,24 @@ class AuronPaimonV2IntegrationSuite
}
}

test("paimon v2 COW primary-key table preserves latest value across commits") {
withTable("paimon.db.t_cow_multi_commit") {
sql("""
|create table paimon.db.t_cow_multi_commit (id int, v string)
|using paimon
|tblproperties (
| 'primary-key' = 'id',
| 'bucket' = '2',
| 'full-compaction.delta-commits' = '1'
|)
|""".stripMargin)
sql("insert into paimon.db.t_cow_multi_commit values (1, 'a'), (2, 'b')")
sql("insert into paimon.db.t_cow_multi_commit values (1, 'updated')")
val df = sql("select * from paimon.db.t_cow_multi_commit")
checkAnswer(df, Seq(Row(1, "updated"), Row(2, "b")))
}
}

test("paimon v2 native scan handles empty table") {
withTable("paimon.db.t_empty") {
sql("create table paimon.db.t_empty (id int, v string) using paimon")
Expand Down
Loading