You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2022/06/23 09:04:05 UTC

[GitHub] [hudi] xiarixiaoyao commented on issue #5740: [SUPPORT] Failed to read hudi table with decimal type using spark

xiarixiaoyao commented on issue #5740:
URL: https://github.com/apache/hudi/issues/5740#issuecomment-1164148570

   @YuweiXiao  how to reproduce the parquet file as your provideļ¼Œ
   ```
      spark.sql(
         s"""
            |create table hhx (
            |  id int,
            |  name string,
            |  price double,
            |  qi decimal(10, 4),
            |  ts long
            |) using hudi
            | location '/tmp/default/hhx'
            | options (
            |  type = 'cow',
            |  primaryKey = 'id',
            |  preCombineField = 'ts'
            | )
                """.stripMargin)
   
       spark.sql("insert into hhx values(1, 'meng', 3.4, 5.00, 898)")
   
       spark.sql("select * from hhx").show(false)
   ```
   those code should be ok for hudi 0.11
   
   


-- 
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-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org