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

Fix create schema authorization bug #7015

Merged
merged 1 commit into from Jun 20, 2023
Merged

Conversation

aykut-bozkurt
Copy link
Contributor

@aykut-bozkurt aykut-bozkurt commented Jun 20, 2023

Fixes a bug related to CREATE SCHEMA AUTHORIZATION for single shard tables. We should properly fetch schema name from role specification if schema name is not given.

SET citus.enable_schema_based_sharding TO ON;
CREATE ROLE a;
CREATE SCHEMA AUTHORIZATION a;
SET citus.enable_schema_based_sharding TO OFF;
Copy link
Member

Choose a reason for hiding this comment

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

would be nice to add a check to confirm that the schema is actually distributed

also, should drop the role at the end

@codecov
Copy link

codecov bot commented Jun 20, 2023

Codecov Report

Merging #7015 (316f095) into main (f667f14) will decrease coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #7015      +/-   ##
==========================================
- Coverage   93.35%   93.33%   -0.03%     
==========================================
  Files         273      273              
  Lines       58475    58479       +4     
==========================================
- Hits        54592    54581      -11     
- Misses       3883     3898      +15     

@aykut-bozkurt aykut-bozkurt merged commit 1bb667c into main Jun 20, 2023
77 checks passed
@aykut-bozkurt aykut-bozkurt deleted the fix-schema-authorization branch June 20, 2023 19:05
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