You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "JoshuaZhuCN (via GitHub)" <gi...@apache.org> on 2023/02/28 14:31:39 UTC

[GitHub] [hudi] JoshuaZhuCN opened a new issue, #8078: [SUPPORT]PrestoDB failed to query data from mor table

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

   An error occurred when PrestoDB queried a field with TIMESTAMP type in the MOR table [Snapshot Mode]
   
   ```
   org.apache.hadoop.io.LongWritable cannot be cast to org.apache.hadoop.hive.serde2.io.TimestampWritable
   ```
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1.
   ```
   drop table if exists `default`.`spark_0_12_1_test2`;
   ```
   2.
   ```
   CREATE TABLE `default`.`spark_0_12_1_test2` (
        `id` INT
       ,`name` string
       ,`age` INT
       ,`sync_time` TIMESTAMP
   ) USING HUDI
   TBLPROPERTIES (
        `type` = 'mor'
       ,`primaryKey` = 'id'
       ,`preCombineField` = 'sync_time'
       ,`hoodie.bucket.index.hash.field` = 'id'
       ,`hoodie.index.type` = 'BLOOM'
       ,`hoodie.datasource.write.hive_style_partitioning` = 'false'
       ,`hoodie.compaction.payload.class` = 'org.apache.hudi.common.model.OverwriteWithLatestAvroPayload',
       `hoodie.datasource.hive_sync.support_timestamp` = 'true'
   )
   COMMENT 'test_0.12.1';
   ```
   3.
   ```
   INSERT INTO `default`.`spark_0_12_1_test2`(id, name, age, sync_time) SELECT 2 AS id, 'hudi0121' AS name, 22 AS age, NOW() AS sync_time;
   
   update `default`.`spark_0_12_1_test2` set age = 33, sync_time = now() where id = 2;
   ```
   4.  query with prestodb
   ```
   select * from hudi."default".spark_0_12_1_test2;
   ```
   
   
   **Environment Description**
   
   * Hudi version : 0.12.1
   
   * Spark version : 3.1.3
   
   *  PrestoDB version: 0.279
   
   * Hive version : 3.1.0
   
   * Hadoop version : 3.1.1
   
   * Storage (HDFS/S3/GCS..) :  HDFS
   
   * Running on Docker? (yes/no) : no
   
   
   


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

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


[GitHub] [hudi] danny0405 commented on issue #8078: [SUPPORT]PrestoDB failed to query data from mor table

Posted by "danny0405 (via GitHub)" <gi...@apache.org>.
danny0405 commented on issue #8078:
URL: https://github.com/apache/hudi/issues/8078#issuecomment-1449280425

   @codope Can you take a look at this issue?


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


Re: [I] [SUPPORT]PrestoDB failed to query data from mor table [hudi]

Posted by "ChandrasekharPo-Kore (via GitHub)" <gi...@apache.org>.
ChandrasekharPo-Kore commented on issue #8078:
URL: https://github.com/apache/hudi/issues/8078#issuecomment-1757345076

   Any progress on this one.
   The query works on <table>_ro but fails with this error on <table>_rt
   This is forcing us to use cow 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-unsubscribe@hudi.apache.org

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


[GitHub] [hudi] codope commented on issue #8078: [SUPPORT]PrestoDB failed to query data from mor table

Posted by "codope (via GitHub)" <gi...@apache.org>.
codope commented on issue #8078:
URL: https://github.com/apache/hudi/issues/8078#issuecomment-1455051596

   This is a known issue. See https://github.com/apache/hudi/issues/7724 and https://github.com/apache/hudi/issues/2869
   We have a PR under review https://github.com/apache/hudi/pull/3391


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