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 table read state #3392

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Refactor table read state #3392

merged 3 commits into from
Apr 29, 2024

Conversation

andyfengHKU
Copy link
Contributor

@andyfengHKU andyfengHKU commented Apr 28, 2024

This PR refactors interfaces for ScanTable and its children classes. In particular, it contains changes on

  • Removal of vector<ValueVector> in ScanTable since we already store the same information in TableReadState. I still have to keep a vector for input and output respectively in order to retrieve their state. I don't think we will be able to solve this because in multi-table scan there are cases where we don't scan a physical table at all. So relying only on TableReadState to set the correct scan result doesn't sound safe to me
  • Remove nodeIDVector from parameter list of initializeReadState because we seem to have the guarantee that it's always the same vector as nodeIDVector in readState

I spot another case in NodeTable::initializeReadState where we seem to re-create NodeDataReadState unnecessarily. @ray6080 should take a look at this.

@andyfengHKU andyfengHKU force-pushed the refactor-table-read-state branch 2 times, most recently from f7d3ca1 to 7c92677 Compare April 28, 2024 04:41
@ray6080 ray6080 merged commit 93fda06 into master Apr 29, 2024
17 checks passed
@ray6080 ray6080 deleted the refactor-table-read-state branch April 29, 2024 03:13
manh9203 pushed a commit that referenced this pull request Apr 29, 2024
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