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

NPY loader fix #1571

Merged
merged 1 commit into from
May 30, 2023
Merged

NPY loader fix #1571

merged 1 commit into from
May 30, 2023

Conversation

acquamarin
Copy link
Collaborator

@acquamarin acquamarin commented May 25, 2023

NPY Loader Fix

BUG: A problem arises when the tensor's size isn't a power of 2. The tensor may end up being stored across two pages, leading to inconsistencies when retrieving data from these pages.
Solution: During the process of writing tensors to the InMemColumnChunk, we now compute the page index and offset for each tensor. This calculated position allows us to avoid storing a tensor accross two pages.

@codecov
Copy link

codecov bot commented May 25, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.05 🎉

Comparison is base (75a0bef) 91.91% compared to head (948d2c0) 91.97%.

❗ Current head 948d2c0 differs from pull request most recent head a08d9e7. Consider uploading reports for the commit a08d9e7 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1571      +/-   ##
==========================================
+ Coverage   91.91%   91.97%   +0.05%     
==========================================
  Files         703      701       -2     
  Lines       25515    25235     -280     
==========================================
- Hits        23453    23210     -243     
+ Misses       2062     2025      -37     
Impacted Files Coverage Δ
...e/storage/in_mem_storage_structure/in_mem_column.h 100.00% <100.00%> (ø)
...age/in_mem_storage_structure/in_mem_column_chunk.h 100.00% <100.00%> (ø)
src/include/storage/storage_utils.h 100.00% <100.00%> (ø)
src/storage/copier/node_copier.cpp 98.30% <100.00%> (-0.02%) ⬇️
src/storage/copier/rel_copy_executor.cpp 93.86% <100.00%> (ø)
...e/in_mem_storage_structure/in_mem_column_chunk.cpp 81.27% <100.00%> (+1.97%) ⬆️

... and 73 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.

@acquamarin acquamarin requested a review from ray6080 May 25, 2023 18:46
@acquamarin acquamarin changed the title Npy loader fix NPY loader fix May 25, 2023

void flush(common::FileInfo* walFileInfo) override;

common::offset_t getOffsetInBuffer(common::offset_t pos) override;
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this function need to be public?

@acquamarin acquamarin merged commit 703636f into master May 30, 2023
8 checks passed
@acquamarin acquamarin deleted the npy-loader-fix branch May 30, 2023 01:07
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