Skip to content
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

Merged
merged 1 commit into from
Jul 14, 2023
Merged

Fix create with serial #1812

merged 1 commit into from
Jul 14, 2023

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented Jul 13, 2023

  1. Fix create node with null property bug.
  2. Disable updates to struct property column.

@acquamarin acquamarin requested a review from ray6080 July 13, 2023 17:48
@codecov
Copy link

codecov bot commented Jul 13, 2023

Codecov Report

Patch coverage: 95.45% and no project coverage change.

Comparison is base (deb1734) 91.20% compared to head (4098bfa) 91.21%.

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     
Impacted Files Coverage Δ
src/catalog/catalog.cpp 90.03% <ø> (-0.08%) ⬇️
src/include/catalog/catalog.h 100.00% <ø> (ø)
src/include/catalog/catalog_structs.h 100.00% <ø> (ø)
src/include/storage/storage_structure/column.h 96.36% <ø> (ø)
src/processor/result/factorized_table.cpp 95.64% <ø> (ø)
src/storage/storage_structure/column.cpp 85.97% <91.66%> (+0.25%) ⬆️
src/binder/bind/bind_updating_clause.cpp 95.79% <100.00%> (+0.26%) ⬆️
src/main/connection.cpp 93.23% <100.00%> (-0.03%) ⬇️
src/storage/store/node_table.cpp 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -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 {
Copy link
Contributor

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);
Copy link
Contributor

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.

@acquamarin acquamarin merged commit 9f7007a into master Jul 14, 2023
10 checks passed
@acquamarin acquamarin deleted the create-fix branch July 14, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants