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

   **_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**
   
   A clear and concise description of the problem.
   
   we are trying to load the data into hudi table but facing the below error .
   
   Steps to reproduce the behavior:
   
   1.df3.write.format("org.apache.hudi").
     option("hoodie.datasource.write.precombine.field", "email").
     option("hoodie.datasource.write.recordkey.field", "ssn").
     option("hoodie.datasource.write.partitionpath.field", "address").
     option("hoodie.database.name", "test_q6").
     option("hoodie.table.name", "bnr_dl_avro").
     option("hoodie.datasource.write.table.type", "COPY_ON_WRITE").
     option("hoodie.datasource.write.operation", "upsert").
     option("hoodie.datasource.write.hive_style_partitioning","true").
     option("hoodie.datasource.meta.sync.enable", "true").
     option("hoodie.datasource.hive_sync.mode", "hms").
     option("hoodie.schema.on.read.enable", "false").
     option("hoodie.datasource.hive_sync.metastore.uris", 
"thrift://dp2-1-vpc-m:9083").
     option("checkpointLocation", 
"gs://test-dp-hudi/checkpoints_test").mode("Overwrite").save("gs://test-dp-hudi/bnr_dl_avro")
   
   
   **Expected behavior**
   
   A clear and concise description of what you expected to happen.
   
   **Environment Description**
   
   * Hudi version :12.3
   
   * Spark version :3.3.1
   
   * Hive version :3.1.3
   
   * Hadoop version :GCS
   
   * Storage (HDFS/S3/GCS..) :GCS
   
   * Running on Docker? (yes/no) :NO 
   
   
   **Additional context**
   
   Add any other context about the problem here.
   
   **Stacktrace**
   
   ```Add the stacktrace of the error.```
   
   
   
   WARN HoodieSparkSqlWriter$: hoodie table at gs://test-dp-hudi/bnr_dl_avro 
already exists. Deleting existing data & overwriting with new data.
   java.lang.ClassCastException: class org.apache.spark.sql.types.StructType 
cannot be cast to class org.apache.spark.sql.types.MapType 
(org.apache.spark.sql.types.StructType and org.apache.spark.sql.types.MapType 
are in unnamed module of loader 'app')
   
   


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