Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
wForget committed Sep 12, 2024
1 parent 834d30d commit 5ccd24c
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,15 @@ class GlutenExpressionMappingSuite
}

test("GLUTEN-7213: Check no fallback even if there is CheckOverflowInTableInsert") {
withTable("t1","t2") {
withTable("t1", "t2") {
sql("create table t1 (a float) stored as parquet")
sql("insert into t1 values(1.1)")
sql("create table t2 (b decimal(10,4)) stored as parquet")

withSQLConf(GlutenConfig.GLUTEN_ENABLED.key -> "true") {
val df = sql("insert overwrite t2 select * from t1")
assert(find(df.queryExecution.executedPlan)(_.isInstanceOf[ProjectExecTransformer]).isDefined)
assert(
find(df.queryExecution.executedPlan)(_.isInstanceOf[ProjectExecTransformer]).isDefined)
assert(find(df.queryExecution.executedPlan)(_.isInstanceOf[ProjectExec]).isEmpty)
}
}
Expand Down

0 comments on commit 5ccd24c

Please sign in to comment.