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 @@ -404,6 +404,21 @@ class AuronPaimonV2IntegrationSuite
}
}

test("paimon v2 native scan falls back for unsupported data types") {
withTable("paimon.db.t_unsupported_type") {
sql(
"create table paimon.db.t_unsupported_type (id int, amount decimal(38, 10)) using paimon")
sql(
"insert into paimon.db.t_unsupported_type values " +
"(1, cast(123.45 as decimal(38, 10)))")

val df = sql("select * from paimon.db.t_unsupported_type")
checkAnswer(df, Seq(Row(1, new java.math.BigDecimal("123.4500000000"))))
val plan = df.queryExecution.executedPlan.toString()
assert(!plan.contains("NativePaimonV2TableScan"))
}
}

private def assertNativePaimonScanApplied(df: DataFrame): Unit = {
val plan = df.queryExecution.executedPlan.toString()
assert(
Expand Down
Loading