josgarmar14 opened a new issue, #8908:
URL: https://github.com/apache/iceberg/issues/8908

   ### Apache Iceberg version
   
   1.0.0
   
   ### Query engine
   
   Spark
   
   ### Please describe the bug 🐞
   
   Facing issue when creating a new iceberg snapshot with new schema. 
   **Code:**
   
`datasource_df.writeTo(f"job_catalog.{args['glue_db']}.{args['glue_iceberg_tablename']}").option("mergeSchema","true").overwritePartitions()`
   
   **Error:** 
   ```
   Cannot write incompatible dataset to table with schema:
   table {
     1: index: optional string
     2: name: optional string
     3: description: optional string
     4: createdby: optional string
     5: new_column: optional string
   }
   Provided schema:
   table {
     1: index: optional string
     5: new_column: optional string
     2: name: optional string
     3: description: optional string
     4: createdby: optional string
   }
   Problems:
   * new_column is out of order, before createdby
   ```
   I am using a Glue Job. Please provide insights on what is wrong. Thanks


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to