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

   We encountered an error while writing to iceberg table
   `java.lang.IllegalArgumentException: Cannot change column type: myCol: 
long->int
   `
   The table was created with long type for myCol. We are writing to Iceberg 
table from Spark application like this :
   `df.writeTo(icebergTable).
    .option("mergeSchema", "true")
    .overwritePartitions()`
    
   Since we have datatype for myCol as int in the dataframe and we are using 
'mergeSchema' option, I believe the writer is trying to downcast the column 
type which is failing. Would it be better if we ignore the downcasting of 
column types with 'mergeSchema' option?


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to