Zouxxyy commented on issue #6421:
URL: https://github.com/apache/hudi/issues/6421#issuecomment-1221336811

   You can view the data inside the parquet file, I use dsq, here is the 
difference between set `hoodie.datasource.write.drop.partition.columns` true or 
false.
   ```shell
   # hoodie.datasource.write.drop.partition.columns=true
   
[{"PARGO_PREFIX__hoodie_commit_time":"20220820222444048","PARGO_PREFIX__hoodie_commit_seqno":"20220820222444048_0_2","PARGO_PREFIX__hoodie_record_key":"id:1","PARGO_PREFIX__hoodie_partition_path":"dt=2021-12-09/hh=11","PARGO_PREFIX__hoodie_file_name":"68851b87-16d6-4b31-9467-2ce99d5d6984-0_0-25-0_20220820222444048.parquet","Id":1,"Name":"a1","Ts":1001}]
   
   # hoodie.datasource.write.drop.partition.columns=false
   
[{"PARGO_PREFIX__hoodie_commit_time":"20220820233435669","PARGO_PREFIX__hoodie_commit_seqno":"20220820233435669_0_3","PARGO_PREFIX__hoodie_record_key":"id:1","PARGO_PREFIX__hoodie_partition_path":"dt=2021-12-09/hh=11","PARGO_PREFIX__hoodie_file_name":"76c6f4e6-dff9-40c3-993d-9890018e8d2e-0_0-42-0_20220820233435669.parquet","Id":1,"Name":"a1","Ts":1001,"Dt":"2021-12-09","Hh":"11"}]
   ```
   `hoodie.datasource.write.drop.partition.columns` looks useful.
   
   And if you use spark-sql query, the partition field will be displayed, I 
guess some kind of optimization is done when querying.


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