RussellSpitzer commented on pull request #2584: URL: https://github.com/apache/iceberg/pull/2584#issuecomment-840569396
> > > > Thank you very much,I have another question, can you help me answer it:When I'm merge into operation on the same table ,appear error。can i Obtain the state of the table to determine?thanks > > > > > > > > > I'm not sure what are you asking? Are you having a conflict error where it says the merge operation is violating the constraint of another opertaion? > > > > > > Thank you for your reply ,Yes Yes, that's the kind of mistake,Is there a better solution to this?Or I can get the merge operation state > > this is Specific error: > 2021-05-13 16:16:50java.sql.SQLException: Error running query: org.apache.iceberg.exceptions.ValidationException: Found conflicting files that can contain records matching true: [alluxio://alluxio-master-0.default.svc.cluster.local:19998/cdp.db/dim_cust_user_mid/data/00000-4074 It would probably best for you to ask about this on the mailing list, but the issue here is that another operation committed while the Merge was being created. This invalidated the merge that had been created causing it to fail. A trivial example User A changes Row (1, 2) to (2, 2) User B changes Row (1, 2) to (4, 2) If both users attempt to do this at the same time one must fail, since both operations cannot both have happened. The validation step in iceberg automatically causes whoever finishes second to fail. -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
