koenvo commented on PR #1817: URL: https://github.com/apache/iceberg-python/pull/1817#issuecomment-2759386009
There is a nice edgecase here.. ```python tbl = catalog.create_table(identifier, schema=schema) # Define exact schema: required int32 and required string arrow_schema = pa.schema([ pa.field("id", pa.int32(), nullable=False), pa.field("name", pa.string(), nullable=False), ]) tbl.append(pa.Table.from_pylist([{"id": 1, "name": "Alice"}], schema=arrow_schema)) df = pa.Table.from_pylist([{"id": 2, "name": "Bob"}, {"id": 1, "name": "Alicia"}], schema=arrow_schema) with tbl.transaction() as txn: txn.upsert(df, join_cols=["id"]) # This will re-insert Bob, instead of reading the uncommitted changes and ignore Bob txn.upsert(df, join_cols=["id"]) ``` @Fokko should it be possible to read uncommitted changes? -- 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