-
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
Populate by column #1424
Populate by column #1424
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1424 +/- ##
=======================================
Coverage 92.64% 92.64%
=======================================
Files 651 650 -1
Lines 22557 22544 -13
=======================================
- Hits 20897 20886 -11
+ Misses 1660 1658 -2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
66598b8
to
6be982e
Compare
src/storage/copier/node_copier.cpp
Outdated
CopyDescription& copyDescription, PageByteCursor& overflowCursor) { | ||
for (auto i = 0u; i < numLinesInCurBlock; i++) { | ||
auto nodeOffset = startNodeOffset + i; | ||
auto currentToken = arrowArray->GetScalar(i); | ||
if ((*currentToken)->is_valid) { | ||
auto stringToken = currentToken->get()->ToString(); | ||
const char* data = stringToken.c_str(); | ||
switch (column->getDataType().typeID) { |
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 would move the switch case out of the for loop.
6be982e
to
cb453ea
Compare
cb453ea
to
7e0368c
Compare
This PR refactors the logic of populating inMemColumn while loading a node table. Instead of populating a row at a time, we populate a column at a time.