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

   **_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**
   
   Data can be found in the latest partition of hudi table, but not in the 
historical partition.
   There is no error in the program,
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   ```
   hoodie.datasource.write.operation=insert
   hoodie.datasource.write.table.type=MERGE_ON_READ
   hoodie.datasource.write.precombine.field=ts
   hoodie.datasource.write.recordkey.field=id
   hoodie.datasource.write.partitionpath.field=part
   hoodie.table.name=ss_bucket_dsj_parquet_12
   
hoodie.datasource.write.keygenerator.class=org.apache.hudi.keygen.SimpleKeyGenerator
   hoodie.insert.shuffle.parallelism=8
   hoodie.datasource.compaction.async.enable=true
   hoodie.compact.inline.max.delta.commits=4
   hoodie.index.type=BUCKET
   hoodie.bucket.index.num.buckets=8
   hoodie.bucket.index.hash.field=id
   
hoodie.storage.layout.partitioner.class=org.apache.hudi.table.action.commit.SparkBucketIndexPartitioner
   hoodie.storage.layout.type=BUCKET
   hoodie.metadata.enable=true
   hoodie.embed.timeline.server=false
   path=/tmp/hudi/ss_bucket_dsj_parquet_12
   checkpointLocation=/tmp/hudi/ckp
   hoodie.datasource.hive_sync.enable=true
   hoodie.datasource.hive_sync.username=ocdp
   hoodie.datasource.hive_sync.database=default
   hoodie.datasource.hive_sync.table=ss_bucket_dsj_parquet_12
   hoodie.datasource.hive_sync.password=ocdp
   hoodie.datasource.hive_sync.jdbcurl=jdbc:hive2://10.1.9.44:10000
   
hoodie.datasource.hive_sync.partition_extractor_class=org.apache.hudi.hive.MultiPartKeysValueExtractor
   hoodie.datasource.hive_sync.partition_fields=part
   hoodie.datasource.write.hive_style_partitioning=true
   hoodie.datasource.hive_sync.bucket_sync=true
   ```
   
   **Expected behavior**
   
   Data should be found in the history partition.
   
   **Environment Description**
   
   * Hudi version :
     Hudi-0.12.0
   * Spark version :
      Spark-3.1.1
   * Hive version :
      Hive-3.1.2
   * Hadoop version :
      Hdoop-3.3.0
   * Storage (HDFS/S3/GCS..) :
      Hdfs
   * Running on Docker? (yes/no) :
     No
   
   **Query result**
   
   
![image](https://user-images.githubusercontent.com/90449228/196078827-d5fc92fb-db80-409a-b640-d594ab6edfce.png)
   
![image](https://user-images.githubusercontent.com/90449228/196079128-f19a5816-a3fe-4545-bc2e-26a2770d7cf8.png)
   
![image](https://user-images.githubusercontent.com/90449228/196079292-70e8b812-96ec-476f-8dab-84cafdb5877f.png)
   
   
   
   
   


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