-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make propertyID global unique #4770
Conversation
@@ -23,7 +23,9 @@ class KUZU_API NodeTableCatalogEntry final : public TableCatalogEntry { | |||
common::TableType getTableType() const override { return common::TableType::NODE; } | |||
|
|||
std::string getPrimaryKeyName() const { return primaryKeyName; } | |||
common::idx_t getPrimaryKeyIdx() const { return propertyCollection.getIdx(primaryKeyName); } | |||
common::property_id_t getPrimaryKeyIdx() const { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
common::property_id_t getPrimaryKeyIdx() const { | |
common::property_id_t getPrimaryKeyID() const { |
Yeah. I will handle the refactoring of columnID after this. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4770 +/- ##
==========================================
+ Coverage 86.31% 86.34% +0.02%
==========================================
Files 1397 1397
Lines 59935 60121 +186
Branches 7384 7390 +6
==========================================
+ Hits 51734 51912 +178
- Misses 8034 8043 +9
+ Partials 167 166 -1 ☔ View full report in Codecov by Sentry. |
Benchmark ResultMaster commit hash:
|
Benchmark ResultMaster commit hash:
|
This PR makes the propertyID global unique which is need by indexCatalogEntry.
Once a property is created in the system, its propertyID never changes.
Our ultimate goal is to unify the columnID with the propertyID, however the backend still reindexes the columnID when we alter the table:
We should consider removing the columnID, so both frontend and backend can use the propertyID.