-
Notifications
You must be signed in to change notification settings - Fork 85
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
Fix create with serial #1812
Fix create with serial #1812
Conversation
acquamarin
commented
Jul 13, 2023
•
edited
Loading
edited
- Fix create node with null property bug.
- Disable updates to struct property column.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1812 +/- ##
=======================================
Coverage 91.20% 91.21%
=======================================
Files 777 777
Lines 28449 28463 +14
=======================================
+ Hits 25948 25963 +15
+ Misses 2501 2500 -1
☔ View full report in Codecov by Sentry. |
@@ -102,9 +102,11 @@ class CatalogContent { | |||
const Property& getRelProperty( | |||
common::table_id_t tableID, const std::string& propertyName) const; | |||
|
|||
std::vector<Property> getAllNodeProperties(common::table_id_t tableID) const; | |||
inline const std::vector<Property>& getNodeProperties(common::table_id_t tableID) 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.
I'm thinking if we should enforce a naming style for returning reference of a value, like getNodePropertiesRef
, etc. What do you think?
@@ -86,6 +86,9 @@ bool Column::isNull(common::offset_t nodeOffset, transaction::Transaction* trans | |||
|
|||
void Column::setNull(common::offset_t nodeOffset) { | |||
nullColumn->setValue(nodeOffset); | |||
auto walPageInfo = createWALVersionOfPageIfNecessaryForElement(nodeOffset, numElementsPerPage); |
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.
hmm I think we only need these newly added lines when we are adding a new node, right? Can we change CreateNode
to go through Column::write
? So we can gradually get rid of setNull
interface, whose functionality is overlapped with write
.
Let's discuss this a bit more when you are online.