grbinho commented on issue #1728: URL: https://github.com/apache/iceberg-python/issues/1728#issuecomment-2693685593
Hi @Fokko I'm doing this ``` mapped_data = [self.mapper(item, self.export_id, self.export_timestamp) for item in data] arrow_data = pa.Table.from_pylist(mapped_data, schema = self.schema.as_arrow()) ... if arrow_data: with table.transaction() as tx: tx.append(arrow_data) else: ... ``` `self.mapper` maps the data so it matches the schema field names. `self.schema` holds the iceberg schema for the data. And that is it. Maybe this `self.schema.as_arrow()` is causing problems? What I was seeing as error was mismatch in field Ids for lists and their `element` field. I will try removing that call later today if I get the chance and test that. -- 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