sandip-yadav opened a new issue, #6421:
URL: https://github.com/apache/hudi/issues/6421

   
   
   
   **Describe the problem you faced**
   
   I am trying to create a Hudi table with property 
**_hoodie.datasource.write.drop.partition.columns_** set to true but it is not 
dropping the partition column while writing the data. I am creating the table 
in spark sql below is the code for it 
   ```
   create  table hudi_source.table1
               using hudi
               options(
                       type = 'mor',
                       primaryKey = 'uuid',
                       'hoodie.datasource.write.operation'= 'bulk_insert',
                       'hoodie.populate.meta.fields' = 'true',
                       'hoodie.sql.bulk.insert.enable' = 'true',
                       'hoodie.sql.insert.mode'='non-strict',
                       'hoodie.datasource.write.drop.partition.columns' = 
'true'         
               )
               partitioned by (year)
               as
   select * from some_table
   ```
   
   After table creation when I do show tblproperties hudi_source.table1 I can 
see the property set to true
   
   **To Reproduce**
   
   Steps to reproduce the behavior:
   
   1. create table by passing 'hoodie.datasource.write.drop.partition.columns' 
as true
   2. verify the partition column in the table
   3.
   4.
   
   **Expected behavior**
   when set to true this table property should drop the partition column while 
writing the data to table
   
   **Environment Description**
   
   * Hudi version : 0.11.1
   
   * Spark version :3.2.2
   
   * Hive version :3.1.3
   
   * Hadoop version :3.3.3
   
   * Storage (HDFS/S3/GCS..) :s3
   
   * Running on Docker? (yes/no) :no
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   stack trace not available
   
   


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