Closed sjpritchard closed 1 year ago
@sjpritchard Are you retrieving the IID before committing in typedb_client
?
The IID before a commit is different to the one after a commit.
In general, if you want to uniquely identify an object in TypeDB, we'd recommend the usage of a unique key attribute. We advise against using the internal identifier and intend to deprecate it in the future.
Yes, it was retrieved before commit. I've followed your advice and added my own unique key attribute.
Excellent - marking this issue as resolved
Description
The concept get_iid() method returns the wrong IID.
Environment
Reproducible Steps
Steps to create the smallest reproducible scenario:
Expected Output
0x826e80028000000000000029 (obtained by running "match $x isa catalog;" in TypeDB Studio and viewing the log)
Actual Output
0x826e80027fffffffffffffff
Additional information
Could it be related to precision conversion, or unsigned->signed casting?