sivaraman-ai commented on issue #1088:
URL: 
https://github.com/apache/iceberg-python/issues/1088#issuecomment-2304424901

   when digging deeper, this condition compares the struct with order
   
   this condition checks the schema order & data types as struct
   
   `if table_schema.as_struct() != task_schema.as_struct()`
   
   if the dataframe which is send to append don't have the columns in order 
w.r.t to the schema table, write fails because the struct turns about to be this
   
   table schema - struct<1: a: optional timestamptz, 2: b: optional 
timestamptz, 3: x: optional string, 4: y: optional string>
   (table columns in this order a, b,x,y)
   dataframe schema - struct<1: a: optional timestamptz, 2: b: optional 
timestamptz,  y: optional string, 3: x: optional string, 4:>
   (dataframe columns in this order a,b,y,z)
   
   I think schema validation can be applied to data types of columns instead of 
order or error message could be more helpful mismatch of fields doesn't make 
sense here?
   
   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

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