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

Grant privileges only on TPCH tables in Redshift query runner #24669

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

mayankvadariya
Copy link
Contributor

Granting privileges on all tables may cause unintended failures, as temporary tables created in one test class may not have been fully dropped or cleaned up from internal Redshift tables while other test class executes grant privileges on all tables.

Description

Closes #24631

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

Granting privileges on all tables may cause unintended failures, as
temporary tables created in one test class may not have been fully
dropped or cleaned up from internal Redshift tables while other test
class executes grant privileges on all tables.
@cla-bot cla-bot bot added the cla-signed label Jan 9, 2025
@@ -125,8 +125,9 @@ public DistributedQueryRunner build()
provisionTables(runner, initialTables);

// This step is necessary for product tests
executeInRedshiftWithRetry(format("GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA %s TO %s", TEST_SCHEMA, GRANTED_USER));

for (TpchTable<?> table : initialTables) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

// This step is necessary for product tests

By the way is there a Redshift product tests? I don't see them in https://github.com/trinodb/trino/actions/runs/12627786329/job/35182951110

@mayankvadariya mayankvadariya requested a review from ebyhr January 9, 2025 23:06
@ebyhr
Copy link
Member

ebyhr commented Jan 9, 2025

/test-with-secrets sha=e19312d66a0dcae1d9e9d341d2d6c5c97c7c4218

Copy link

github-actions bot commented Jan 9, 2025

The CI workflow run with tests that require additional secrets has been started: https://github.com/trinodb/trino/actions/runs/12700021614

@ebyhr ebyhr merged commit a6c0e52 into trinodb:master Jan 10, 2025
17 checks passed
@github-actions github-actions bot added this to the 469 milestone Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Flaky TestRedshiftUnload
2 participants