stream2000 commented on code in PR #7793: URL: https://github.com/apache/hudi/pull/7793#discussion_r1092719567
########## hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/TestInsertTable.scala: ########## @@ -433,122 +433,22 @@ class TestInsertTable extends HoodieSparkSqlTestBase { """.stripMargin) checkAnswer(s"select id, name, price, ts, dt from $tableName " + s"where dt >='2021-01-04' and dt <= '2021-01-06' order by id,dt")( - Seq(2, "a2", 12.0, 1000, "2021-01-05"), - Seq(2, "a2", 10.0, 1000, "2021-01-06"), Seq(3, "a1", 10.0, 1000, "2021-01-04") ) - // test insert overwrite non-partitioned table + // Test insert overwrite non-partitioned table spark.sql(s"insert overwrite table $tblNonPartition select 2, 'a2', 10, 1000") checkAnswer(s"select id, name, price, ts from $tblNonPartition")( Seq(2, "a2", 10.0, 1000) ) - }) - } - test("Test Insert Overwrite Table for V2 Table") { - withSQLConf("hoodie.schema.on.read.enable" -> "true") { Review Comment: V2 Table is only enabled when hoodie.schema.on.read.enable is true, otherwise v2Table.v1TableWrapper will be used(see org.apache.spark.sql.hudi.catalog.HoodieCatalog#loadTable). In V2 table, we can distinguish between insert overwrite partition and insert overwrite table while we can't do this in v1 table, so I add a v2 table test here to test the different behaviors between v1 and v2 table. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org