Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Oct 8, 2024
1 parent 85e6165 commit e5a0d23
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ class BatchWriteDataTypeSuite extends BaseBatchWriteTest("test_data_type", "test
jdbcUpdate(s"create table $dbtable2 (dt date)")
jdbcUpdate(s"insert into $dbtable2 values ('2020-01-01')")

noException should be thrownBy spark.sql(s"insert into $dbtable1 select * from $dbtable2").show()
the[AnalysisException] thrownBy spark.sql(s"insert into $dbtable1 values ('2020-01-01')").show()
noException should be thrownBy spark
.sql(s"insert into $dbtable1 select * from $dbtable2")
.show()
the[AnalysisException] thrownBy spark
.sql(s"insert into $dbtable1 values ('2020-01-01')")
.show()
}

test("Test Read different types") {
Expand Down

0 comments on commit e5a0d23

Please sign in to comment.