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 2021/02/03 04:49:28 UTC

[GitHub] [hudi] zuyanton commented on issue #2509: [SUPPORT]Hudi saves TimestampType as bigInt

zuyanton commented on issue #2509:
URL: https://github.com/apache/hudi/issues/2509#issuecomment-772225257


   @satishkotha I added that parameter to my example, now  after writing data into s3 , when I run ```spark.sql("describe testTable3").show``` I get 
   ```
   +--------------------+---------+-------+  
   |            col_name|data_type|comment|
   +--------------------+---------+-------+
   ....
   |           timestamp|timestamp|   null|
   ```  
   which is good , however when I run ```spark.sql("select * from  testTable3").show``` I get exception    
   java.lang.ClassCastException: org.apache.hadoop.io.LongWritable cannot be cast to org.apache.hadoop.hive.serde2.io.TimestampWritable
   


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

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