xuzifu666 opened a new issue, #10813:
URL: https://github.com/apache/hudi/issues/10813

   **_Tips before filing an issue_**
   
   - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)?
   
   - Join the mailing list to engage in conversations and get faster support at 
[email protected].
   
   - If you have triaged this as a bug, then file an 
[issue](https://issues.apache.org/jira/projects/HUDI/issues) directly.
   
   **Describe the problem you faced**
   
   A clear and concise description of the problem.
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1.
   小徐:
   老师 今天发现一个bug 现象:
   test("Test table type name first merge test") {
     withRecordType()(withTempDir { tmp =>
       val targetTable = generateTableName
       val tablePath = 
s"${tmp.getCanonicalPath}/$targetTable".replaceAll("\\\\", "\\/")
       spark.sql(
         s"""
            |create table ${targetTable} (
            |  `id` string,
            |  `name` string,
            |  `ts` bigint,
            |  `day` STRING,
            |  `hour` INT
            |) using hudi
            |tblproperties (
            |  'primaryKey' = 'id',
            |  'type' = 'mor',
            |  'preCombineField'='ts',
            |  'hoodie.index.type' = 'BUCKET',
            |  'hoodie.bucket.index.hash.field' = 'id',
            |  'hoodie.bucket.index.num.buckets'=512
            | )
              partitioned by (`day`,`hour`)
              location '${tablePath}'
              """.stripMargin)
   
       spark.sql(
         s"""
            |insert into ${targetTable}
            |select '1' as id, 'aa' as name, 123 as ts, '2024-02-19' as `day`, 
10 as `hour`
            |""".stripMargin)
   
       spark.sql(
         s"""
            |insert into ${targetTable}
            |select '1' as id, 'bb' as name, 12 as ts, '2024-02-19' as `day`, 
10 as `hour`
            |""".stripMargin)
   
   
       checkAnswer(s"select id, name, ts, day, hour from $targetTable limit 
10")(
         Seq("1", "aa", 123, "2024-02-19", 10),
       )
     })
   }
   
   2. the ut would error
   3. From debug guess parquet base log did not convert to payload to compute 
with record logs
   
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 0.14.0
   
   * Spark version : 3.2 
   
   * Hive version : 1.1.0
   
   * Hadoop version :3.2.0
   
   * Storage (HDFS/S3/GCS..) : HDFS
   
   * Running on Docker? (yes/no) :
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   


-- 
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