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

Refactor node table to take in columnID instead of propertyID #2054

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

ray6080
Copy link
Contributor

@ray6080 ray6080 commented Sep 19, 2023

Now node table takes in columnID instead propertyID to access a column. Internally node table stores all columns in a vector (instead of a map), which is aligned with its tableSchema (we skip INTERNAL_ID column).
The front-end (or mapper currently) is responsible for aligning scanned columns in node table with properties in schema.

@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Patch coverage: 98.83% and project coverage change: +0.01% 🎉

Comparison is base (fe850a7) 90.22% compared to head (2c20885) 90.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2054      +/-   ##
==========================================
+ Coverage   90.22%   90.24%   +0.01%     
==========================================
  Files         950      950              
  Lines       33776    33781       +5     
==========================================
+ Hits        30476    30486      +10     
+ Misses       3300     3295       -5     
Files Changed Coverage Δ
src/include/catalog/table_schema.h 100.00% <ø> (ø)
...clude/processor/operator/persistent/set_executor.h 94.11% <ø> (ø)
src/include/processor/plan_mapper.h 100.00% <ø> (ø)
src/include/storage/local_storage.h 100.00% <ø> (ø)
src/include/storage/local_table.h 100.00% <ø> (ø)
src/include/storage/store/nodes_store.h 100.00% <ø> (ø)
src/storage/store/node_column.cpp 78.28% <ø> (ø)
src/storage/wal_replayer.cpp 83.84% <50.00%> (+0.18%) ⬆️
src/catalog/table_schema.cpp 80.82% <100.00%> (+1.11%) ⬆️
src/include/processor/operator/mask.h 100.00% <100.00%> (ø)
... and 16 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -50,6 +49,16 @@ property_id_t TableSchema::getPropertyID(const std::string& propertyName) const
"Table: {} doesn't have a property with propertyName={}.", tableName, propertyName));
}

// TODO(Guodong): Instead of looping over properties, cache a map between propertyID and columnID.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes let's open an issue about this

@andyfengHKU andyfengHKU merged commit f822c56 into master Sep 19, 2023
11 checks passed
@andyfengHKU andyfengHKU deleted the refactor-storage branch September 19, 2023 16:12
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