Skip to content
Merged
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,26 @@ class AuronPaimonV2IntegrationSuite
}
}

test("paimon v2 native scan preserves latest COW value after compaction") {
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')")
sql("CALL paimon.sys.compact(table => 'db.t_cow_multi_commit')")
val df = sql("select * from paimon.db.t_cow_multi_commit")
checkAnswer(df, Seq(Row(1, "updated"), Row(2, "b")))
Comment thread
weimingdiit marked this conversation as resolved.
assertNativePaimonScanApplied(df)
}
}

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