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

Hide catalog content #2502

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Hide catalog content #2502

merged 1 commit into from
Nov 29, 2023

Conversation

andyfengHKU
Copy link
Contributor

This PR hides as many interfaces as possible for CatalogContent. All access to catalog information should directly go through catalog with a transaction pointer. See changes in catalog.h & catalog_content.h. This PR also takes us one step closer to support manual transaction over DDL.

Note that since we were not passing transaction pointer properly for DDL code path, I have to use DUMMY_READ_TRANSACTION in many places, specifically Planner & WAL.

Also I'm commenting out DDL transaction test. We should no longer maintain end2end test through cpp code.

@andyfengHKU andyfengHKU force-pushed the hide-catalog-content branch 2 times, most recently from 40c23b8 to 575761e Compare November 27, 2023 05:47
src/binder/bind/bind_comment_on.cpp Show resolved Hide resolved
src/main/connection.cpp Show resolved Hide resolved
@andyfengHKU andyfengHKU force-pushed the hide-catalog-content branch 2 times, most recently from 158e5df to a5322b7 Compare November 29, 2023 06:29
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (2504cd4) 91.56% compared to head (a5322b7) 91.57%.

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

Files Patch % Lines
src/catalog/catalog.cpp 95.89% 3 Missing ⚠️
src/binder/bind/bind_graph_pattern.cpp 89.47% 2 Missing ⚠️
src/catalog/catalog_content.cpp 91.30% 2 Missing ⚠️
src/include/processor/operator/ddl/rename_table.h 75.00% 1 Missing ⚠️
src/storage/wal_replayer.cpp 87.50% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2502      +/-   ##
==========================================
+ Coverage   91.56%   91.57%   +0.01%     
==========================================
  Files        1028     1028              
  Lines       37992    38020      +28     
==========================================
+ Hits        34787    34817      +30     
+ Misses       3205     3203       -2     

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

@andyfengHKU andyfengHKU merged commit c92c046 into master Nov 29, 2023
12 checks passed
@andyfengHKU andyfengHKU deleted the hide-catalog-content branch November 29, 2023 10:19
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