geserdugarov commented on issue #12133:
URL: https://github.com/apache/hudi/issues/12133#issuecomment-2432023177

   I've simplified provided test to:
   ```Java
   test("Test MOR as COW") {
     withSQLConf("hoodie.datasource.write.operation" -> "bulk_insert") {
       spark.sql(
         s"""
            |create table mor_as_cow (
            |  id int,
            |  dt int
            |) using hudi
            | tblproperties (
            | primaryKey = 'id',
            | type = 'cow',
            | preCombineField = 'dt',
            | hoodie.index.type = 'BUCKET',
            | hoodie.index.bucket.engine = 'SIMPLE',
            | hoodie.bucket.index.num.buckets = '2',
            | hoodie.datasource.write.row.writer.enable = 'false')
            | location '/tmp/mor_as_cow'
           """.stripMargin)
       spark.sql(s"insert into mor_as_cow values (5, 10)")
       spark.sql(s"insert into mor_as_cow values (9, 30)")
     }
   }
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to