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

Add support for CREATE and DROP SCHEMA in BigQuery #7543

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

ebyhr
Copy link
Member

@ebyhr ebyhr commented Apr 10, 2021

No description provided.

@cla-bot cla-bot bot added the cla-signed label Apr 10, 2021
@ebyhr ebyhr requested review from losipiuk and hashhar April 10, 2021 01:52
assertUpdate("DROP SCHEMA " + schemaName);
}

@Test
Copy link
Member

Choose a reason for hiding this comment

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

Please add a test when you try to drop schema in case when case insensitive mapping is enabled.
Test a case when only single schema matches DROP request (it should be allowed).
And a case when there are multiple matching schemas. In that case DROP should raise an exception.

Copy link
Member

Choose a reason for hiding this comment

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

perhaps instead of adding expicit tests here we could leverage io.trino.testing.BaseConnectorSmokeTest#testCreateSchema or io.trino.testing.BaseConnectorTest (AbstractTestDistributedQueries)#testCreateSchema

@ebyhr ebyhr force-pushed the bigquery-create-drop-schema branch from aac5620 to e12eba4 Compare April 17, 2021 09:56
Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

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

LGTM % squash

@ebyhr ebyhr force-pushed the bigquery-create-drop-schema branch from e12eba4 to 993a711 Compare April 19, 2021 12:37
@ebyhr ebyhr merged commit 269e9de into trinodb:master Apr 19, 2021
@ebyhr ebyhr deleted the bigquery-create-drop-schema branch April 19, 2021 15:01
@ebyhr ebyhr mentioned this pull request Apr 19, 2021
9 tasks
@ebyhr ebyhr added this to the 356 milestone Apr 21, 2021
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.

4 participants