waywtdcc opened a new issue #4683:
URL: https://github.com/apache/hudi/issues/4683


   
   
   **To Reproduce**
   
   `
   CREATE TABLE `hudi.user_cdc17`(
   )
   ROW FORMAT SERDE 
     'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' 
   STORED AS INPUTFORMAT 
     'org.apache.hadoop.mapred.TextInputFormat' 
   OUTPUTFORMAT 
     'org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat'
   `
   `
   CREATE EXTERNAL TABLE `hudi.user_cdc17_ro`(
     `_hoodie_commit_time` string COMMENT '', 
     `_hoodie_commit_seqno` string COMMENT '', 
     `_hoodie_record_key` string COMMENT '', 
     `_hoodie_partition_path` string COMMENT '', 
     `_hoodie_file_name` string COMMENT '', 
     `id` bigint COMMENT '', 
     `name` string COMMENT '', 
     `birthday` bigint COMMENT '', 
     `ts` bigint COMMENT '')
   PARTITIONED BY ( 
     `date_str` string COMMENT '')
   ROW FORMAT SERDE 
     'org.apache.hadoop.hive.ql.io.parquet.serde.ParquetHiveSerDe' 
   WITH SERDEPROPERTIES ( 
     'hoodie.query.as.ro.table'='true') 
   STORED AS INPUTFORMAT 
     'org.apache.hudi.hadoop.HoodieParquetInputFormat' 
   OUTPUTFORMAT 
     'org.apache.hadoop.hive.ql.io.parquet.MapredParquetOutputFormat'
   LOCATION
     'hdfs://test/user/hive/warehouse/hudi.db/user_cdc17'
   TBLPROPERTIES (
     'last_commit_time_sync'='20220125081930201', 
     'spark.sql.sources.provider'='hudi', 
     'spark.sql.sources.schema.numPartCols'='1', 
     'spark.sql.sources.schema.numParts'='1'
   
   `
   
   `select count(*)
   from test.users_cdc_hive  t1
   left join hudi.user_cdc17_ro t2 on t1.id = t2.id
   and t1.name = t2.name and cast(t1.ts as bigint) = t2.ts ;`
   
![image](https://user-images.githubusercontent.com/59957056/150933074-dacbfb36-5d51-4e1d-9e2c-e98ad72d5555.png)
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version : 0.10
   
   * Spark version :
   
   * Hive version : 2.3.6
   
   * Hadoop version : 2.7.7
   
   * Storage (HDFS/S3/GCS..) :
   
   * Running on Docker? (yes/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: [email protected]

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


Reply via email to