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

feat: update our cross schema check to cross catalog #3123

Merged

Conversation

sunng87
Copy link
Member

@sunng87 sunng87 commented Jan 9, 2024

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

We was restricting cross-schema query because of our cloud permission system. As we are switching to catalog based service, we start to allow those cross-schema access. This patch updates check to valid catalog only. It enables us to utilize internal schema greptime_private.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

Refer to a related PR or issue link (optional)

@sunng87 sunng87 requested a review from shuiyisong January 9, 2024 09:15
@github-actions github-actions bot added docs-not-required This change does not impact docs. Size: S labels Jan 9, 2024
@sunng87 sunng87 requested review from MichaelScofield and v0y4g3r and removed request for MichaelScofield January 9, 2024 09:16
Copy link
Member

@waynexia waynexia left a comment

Choose a reason for hiding this comment

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

Feels good

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a0a31c8) 85.61% compared to head (dcecf47) 85.14%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3123      +/-   ##
==========================================
- Coverage   85.61%   85.14%   -0.47%     
==========================================
  Files         815      815              
  Lines      133411   133397      -14     
==========================================
- Hits       114222   113584     -638     
- Misses      19189    19813     +624     

Copy link
Contributor

@shuiyisong shuiyisong left a comment

Choose a reason for hiding this comment

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

LGTM

@shuiyisong shuiyisong added this pull request to the merge queue Jan 9, 2024
Merged via the queue into GreptimeTeam:main with commit 1fc168b Jan 9, 2024
25 checks passed
@shuiyisong shuiyisong deleted the feature/allow-cross-schema-access branch January 9, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants